From 10e859a2f338858d7b02f5ffda77f574f362ffd9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 30 Dec 2017 14:07:33 +0100 Subject: [PATCH] calenderspec: when normalizing, flush out UTC timezone --- src/basic/calendarspec.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.47.3