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:
parent
f6d9d7962e
commit
9c35db85d1
3 changed files with 12 additions and 8 deletions
|
|
@ -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
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue