calenderspec: when normalizing, flush out UTC timezone

This commit is contained in:
Lennart Poettering
2018-01-04 13:27:27 +01:00
parent 2dc894541f
commit 10e859a2f3
+5
View File
@@ -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;