Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 22:20:17 +0000



Post From: TimeZonesEnum::TIMEZONE_CUSTOM doesn't seem work

[2023-03-13 17:58:09]
Tony - Posts: 460
Hi,

I set Custom Time Zone as UTC+2 with Daylight Saving settings,

When I try to use function:

sc.ConvertDateTimeFromChartTimeZone(sc.CurrentSystemDateTime, TIMEZONE_CUSTOM);

I get UTC time instead of Custom Time Zone I set, I tried both "Use Global Time Zone"
and use chart its own time zone, both have the same result.

Not sure what I did wrong...

Other TimeZonesEnum values work fine.

Thanks so much!


My second question, for sc.ConvertDateTimeFromChartTimeZone() function, if I use
TIME_ZONE_POSIX_STRINGS, Is it safe to create my own time zone by mimicking the format in
scconstants.h file? i.e. :

"MTZ+02MDT+01,M3.5.0/02:00,M10.5.0/02:00"

Date Time Of Last Edit: 2023-03-13 20:50:40