Skip to content

Commit 2fdaf6a

Browse files
author
Зишан Мирза
committed
added more timezones
1 parent 6192dc4 commit 2fdaf6a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libc/src/time/timezone.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ int get_timezone_offset(char *timezone) {
3232
offset = -8;
3333
}
3434

35+
if (tz.ends_with("Chicago")) {
36+
offset = -4;
37+
}
38+
3539
if (tz.ends_with("New_York")) {
3640
offset = -5;
3741
}
@@ -40,6 +44,10 @@ int get_timezone_offset(char *timezone) {
4044
if (tz.starts_with("Europe")) {
4145
offset = 1;
4246

47+
if (tz.ends_with("Lisbon")) {
48+
offset = 0;
49+
}
50+
4351
if (tz.ends_with("Moscow")) {
4452
offset = 2;
4553
}

0 commit comments

Comments
 (0)