chiark / gitweb /
time-util: correctly handle the timezone when parsing
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Wed, 20 Sep 2017 12:47:49 +0000 (14:47 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 20 Sep 2017 12:47:49 +0000 (14:47 +0200)
commit74b2a31089b0a1a7a1eadf7bbd0873d314e1b432
tree61c2bb8515f959bdb22872dbbd0c8c7bf3cfe8f1
parentcb116c8162bfe7ef8afae34097ec95726d0e766a
time-util: correctly handle the timezone when parsing

The timezone was cut off the string once the timezone was not UTC.
If it is not UTC but a other timezone that matches tzname[0] or
tzname[1], then we can leave it to the impl function to parse that
correctly. If not we can just fallback to whatever is the current
timezone is in the given t_timezone.

This should fix the testuite and tests.
src/basic/time-util.c