I think there is a bug in the RegularTimePeriod that is using a static constant to reference the default timezone.
The problem arise with the following code (for ex) :
Code: Select all
new Day(new Date());
Timezone.setDefault(<timezone != previous default>);
new Day(new Date()); -> will still be based on the old default
The workaround is to ALWAYS use : new Day(<dte>, Timezone.getDefaultTimezone()) but this is quite annoying
regards,