You need to sign in to do that
Don't have an account?
Kevin Breazile 1
Does Time Zone "Greenwich Mean Time (Europe/London) use DST?
I need to know if the Time Zone Greenwich Mean Time (Europe/London) changes with Daylight Savings Time for users assigned to this Time Zone. If this Time Zone does not, then which one would I use?
Kevin
Kevin
Timezone tz2 = Timezone.getTimeZone('Europe/London');
DateTime dtpost = DateTime.newInstanceGMT(2023, 11, 1, 0, 0, 0);
system.debug('dtpost: '+dtpost + ' offset: '+tz2.getOffset(dtpost));
DateTime dtpost2 = DateTime.newInstanceGMT(2023, 08, 1, 0, 0, 0);
system.debug('dtpost2: '+dtpost2 + ' offset: '+tz2.getOffset(dtpost2));
output:
DEBUG|dtpost: 2023-11-01 00:00:00 offset: 0
DEBUG|dtpost2: 2023-08-01 00:00:00 offset: 3600000