c - Where does the timezone for date and strftime come from? -
im curious because checked on linux host in sydney, australia , date command says est
timezone, strftime(tz, sizeof(tz), "%z", &time)
when running simple c binary print out. however, know timezone aest
. timezone abbreviations truncated? can find out more this?
australian time zone abbreviations changed in tzdb 2014f, released in august 2014.
you need update time zone data file current version (2015b of writing). on linux, in tzdata
package, can update using apt-get
, or rpm
, or whatever appropriate distro.