Make the agenda work in the default timezone, not a hardcoded tz of Los_Angeles (bug 329647); thanks to <ssitter@googlemail.com> for finding and patching this, r=dmose.

This commit is contained in:
dmose%mozilla.org 2006-03-10 05:26:33 +00:00
Родитель 01367db66d
Коммит 88f0ff2614
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -385,8 +385,7 @@ function refreshPeriodDates()
var now = new Date();
var d = new CalDateTime();
d.jsDate = now;
//XXX use default timezone
d = d.getInTimezone("/mozilla.org/20050126_1/America/Los_Angeles");
d = d.getInTimezone(calendarDefaultTimezone());
// Today: now until midnight of tonight
this.today.start = d.clone();