about summary refs log tree commit diff
path: root/src/stat
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-08-07 22:15:04 -0400
committerRich Felker <dalias@aerifal.cx>2018-08-07 22:15:04 -0400
commit1ad8138819ced49851e618c9c063aa0ffc86718c (patch)
tree1342d56489570d42c163535bd2b6791aad0111c7 /src/stat
parent7dad9c212587267818de919dd9c5886f18f99779 (diff)
downloadmusl-1ad8138819ced49851e618c9c063aa0ffc86718c.tar.gz
musl-1ad8138819ced49851e618c9c063aa0ffc86718c.tar.xz
musl-1ad8138819ced49851e618c9c063aa0ffc86718c.zip
fix sign of strftime %z output with offsets <1 hour west of UTC
the sign character produced came from the sign of tm_gmtoff/3600 as an
integer division, which is zero for negative offsets smaller in
magnitude than 3600. instead of printing the hours and minutes as
separate fields, print them as a single value of the form
hours*100+minutes, which naturally has the correct sign.
Diffstat (limited to 'src/stat')
0 files changed, 0 insertions, 0 deletions