From: Lennart Poettering Date: Sat, 30 Dec 2017 13:07:33 +0000 (+0100) Subject: calenderspec: when normalizing, flush out UTC timezone X-Git-Tag: v237~146^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10e859a2f338858d7b02f5ffda77f574f362ffd9;p=thirdparty%2Fsystemd.git calenderspec: when normalizing, flush out UTC timezone --- diff --git a/src/basic/calendarspec.c b/src/basic/calendarspec.c index 41dceb065c2..d1ba1681fbc 100644 --- a/src/basic/calendarspec.c +++ b/src/basic/calendarspec.c @@ -156,6 +156,11 @@ static void fix_year(CalendarComponent *c) { int calendar_spec_normalize(CalendarSpec *c) { assert(c); + if (streq_ptr(c->timezone, "UTC")) { + c->utc = true; + c->timezone = mfree(c->timezone); + } + if (c->weekdays_bits <= 0 || c->weekdays_bits >= BITS_WEEKDAYS) c->weekdays_bits = -1;