search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Navigator winter-time troubles?

Asked by Anonymous
12 years ago.

Im using Navigator with my scheduler have set it up to use Monday as the first day of the week.
It all works fine for summer months, but in the winter-time months suddenly Sunday has become the first day of the week...

Code:
if ("navigate".equals(ea.getCommand())) {
System.out.println(ea.getData().getString("start"));
DateTime start = DateTime.parseString(ea.getData().getString("start"));
System.out.println(start);
start = Week.firstDayOfWeek(start, DayOfWeek.MONDAY);
System.out.println(start);
setStartDate(start);
update(UpdateType.FULL);
}
As you can see I have put a few System.out's in there to debug the date. But the date seems fine...
Here is the output from testing two dates. One before and one after winter-time changes:

Before wintertime:
2012-10-22T00:00:00
2012-10-22T00:00:00
2012-10-22T00:00:00

After:
2012-10-29T00:00:00
2012-10-29T00:00:00
2012-10-29T00:00:00

So even though the last test clearly indicates that october 29th is used as the date it is setting in setStartDate(), still sunday the 28th is used for the startdate. Please see my two attached screenshots for the two test-cases.

Any ideas?

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.