Use symbolic constant for DST shift

No real changes, just use DST_OFFSET constant instead of 3600 and remove the
"FIXME" comments as we're not actually going to fix anything here but will
just continue to assume 1 hour shift for DST.
This commit is contained in:
Vadim Zeitlin
2017-04-18 19:47:15 +02:00
parent f6d9d7962e
commit 9c35db85d1
3 changed files with 12 additions and 8 deletions

View File

@@ -277,6 +277,15 @@ public:
Sunday_First // week starts with a Sunday
};
// Currently we assume that DST is always shifted by 1 hour, this seems to
// be always true in practice. If this ever needs to change, search for all
// places using DST_OFFSET and update them.
enum
{
DST_OFFSET = 3600
};
// helper classes
// ------------------------------------------------------------------------