Permalink
Browse files

Fix for bug 2729: incorrect display of previous/next days in calendar…

… day

view when the server's TZ was less than GMT and the user's TZ was greater
than the server's.

This was already fixed in HEAD as part of the DST overhaul.

Kudos to Dan Fleming (dflemingnz at aol dot com) for a most informative report.
  • Loading branch information...
1 parent e137c8f commit 75aa6f4ea9932ddd22eed919cebf012622af8e0c defacer committed Mar 12, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 calendar/lib.php
View
@@ -540,8 +540,8 @@ function calendar_top_controls($type, $data) {
case 'day':
$data['d'] = $date['mday']; // Just for convenience
$dayname = calendar_wday_name($date['weekday']);
- $prevdate = getdate(make_timestamp($data['y'], $data['m'], $data['d'] - 1));
- $nextdate = getdate(make_timestamp($data['y'], $data['m'], $data['d'] + 1));
+ $prevdate = usergetdate(make_timestamp($data['y'], $data['m'], $data['d'] - 1));
+ $nextdate = usergetdate(make_timestamp($data['y'], $data['m'], $data['d'] + 1));
$prevname = calendar_wday_name($prevdate['weekday']);
$nextname = calendar_wday_name($nextdate['weekday']);
$content .= "<table style='width: 100%;'><tr>\n";

0 comments on commit 75aa6f4

Please sign in to comment.