Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Bug 552386 - test_history_sidebar.js fails between midnight and 2:00a…

…m with new DST settings, r=dietrich a=dholbert for CLOSED TREE
  • Loading branch information...
commit 88d91d133b25a5341bfc1c9e5d9d94c10e1760b4 1 parent bd61e93
@mak77 mak77 authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 toolkit/components/places/src/nsNavHistory.cpp
5 toolkit/components/places/src/nsNavHistory.cpp
@@ -3526,7 +3526,10 @@ PlacesSQLQueryBuilder::SelectAsDay()
// February has not 30 days, will return March instead.
tm.tm_mday = 1;
tm.tm_month -= MonthIndex;
- PR_NormalizeTime(&tm, PR_LocalTimeParameters);
+ // Notice we use GMTParameters because we just want to get the first
+ // day of each month. Using LocalTimeParameters would instead force us
+ // to apply a DST correction that we don't really need here.
+ PR_NormalizeTime(&tm, PR_GMTParameters);
// tm_month starts from 0 while GetMonthName expects a 1-based index.
history->GetMonthName(tm.tm_month+1, dateName);

0 comments on commit 88d91d1

Please sign in to comment.
Something went wrong with that request. Please try again.