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:
@@ -689,10 +689,7 @@ wxString wxDateTime::Format(const wxString& formatp, const TimeZone& tz) const
|
||||
// time in the local time zone to the user.
|
||||
if ( ofs == -wxGetTimeZone() && IsDST() == 1 )
|
||||
{
|
||||
// FIXME: As elsewhere in wxDateTime, we assume
|
||||
// that the DST is always 1 hour, but this is not
|
||||
// true in general.
|
||||
ofs += 3600;
|
||||
ofs += DST_OFFSET;
|
||||
}
|
||||
|
||||
if ( ofs < 0 )
|
||||
|
||||
Reference in New Issue
Block a user