Skip to content

Commit

Permalink
support for swift timezone
Browse files Browse the repository at this point in the history
time zone crashing for some swift new zones (example America/Mazatlan)

WenchaoD#1424
  • Loading branch information
Zdravko Zdravkin committed Jan 30, 2024
1 parent df53e79 commit f42b358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FSCalendar/FSCalendar.m
Expand Up @@ -152,7 +152,7 @@ - (void)initialize
_formatter = [[NSDateFormatter alloc] init];
_formatter.dateFormat = @"yyyy-MM-dd";
_locale = [NSLocale currentLocale];
_timeZone = [NSTimeZone defaultTimeZone];
_timeZone = [NSTimeZone timeZoneWithAbbreviation: _timeZone.abbreviation];
_firstWeekday = 1;
[self invalidateDateTools];

Expand Down

0 comments on commit f42b358

Please sign in to comment.