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:
@@ -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
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user