]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Fri, 22 Sep 2017 12:01:33 +0000 (14:01 +0200)
commit3fd4929b960776b5368222688cecabd6ec958f7b
treed746b4f7b1240ba3c6ef56436d8955c5c8a60314
parentff69484a1faa82bb7b7929de2c6673f1f7e7b2cc
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