Do nothing when converting wxDateTime to/from local time zone

In particular, do not (unexpectedly) adjust time by the DST.

Closes #16585.

See #10445.
This commit is contained in:
Vadim Zeitlin
2017-11-29 23:15:57 +01:00
parent 543c522cb8
commit c7c30504c8
3 changed files with 17 additions and 23 deletions

View File

@@ -1257,10 +1257,7 @@ public:
If @a noDST is @true, no DST adjustments will be made.
Notice using wxDateTime::Local for @a tz parameter doesn't really make
sense and may result in unexpected results as it will return a
different object when DST is in use and @a noDST has its default value
of @false.
If @a tz parameter is wxDateTime::Local, no adjustment is performed.
@return The date adjusted by the different between the given and the
local time zones.
@@ -1297,9 +1294,7 @@ public:
If @a noDST is @true, no DST adjustments will be made.
Notice that, as with FromTimezone(), using wxDateTime::Local as @a tz
doesn't really make sense and may return a different object when DST is
in effect and @a noDST is @false.
If @a tz parameter is wxDateTime::Local, no adjustment is performed.
@return The date adjusted by the different between the local and the
given time zones.