We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa3b994 commit e50b416Copy full SHA for e50b416
trantor/utils/Date.h
@@ -76,8 +76,9 @@ class TRANTOR_EXPORT Date
76
77
static int64_t timezoneOffset()
78
{
79
- static int64_t offset =
80
- -Date::fromDbStringLocal("1970-01-01 00:00:00").secondsSinceEpoch();
+ static int64_t offset = -(
+ Date::fromDbStringLocal("1970-01-03 00:00:00").secondsSinceEpoch() -
81
+ 2LL * 3600LL * 24LL * MICRO_SECONDS_PRE_SEC);
82
return offset;
83
}
84
0 commit comments