diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-10-08 11:29:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-10-08 11:29:31 +0000 |
commit | 44f89e5aef65c1a6bc50c901d9a9207f848c28a9 (patch) | |
tree | d19bd787d8bfb389858e92cc483e23d570ffb06f /modules/archive.module | |
parent | af1eb3b9dba1959adc1b5a704b3e749adf7b2105 (diff) | |
download | brdo-44f89e5aef65c1a6bc50c901d9a9207f848c28a9.tar.gz brdo-44f89e5aef65c1a6bc50c901d9a9207f848c28a9.tar.bz2 |
- Patch #11388 by pss0ft/Stefan: fixed time offset bug in archive module.
Diffstat (limited to 'modules/archive.module')
-rw-r--r-- | modules/archive.module | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/archive.module b/modules/archive.module index d92e990f0..e67aff151 100644 --- a/modules/archive.module +++ b/modules/archive.module @@ -26,9 +26,8 @@ function archive_calendar($original = 0) { $edit = $_POST['edit']; // Extract today's date: - $offset = time() + $user->timezone; - $start_of_today = mktime(0, 0, 0, date('n', $offset), date('d', $offset), date('Y', $offset)) + $user->timezone; - $end_of_today = mktime(23, 59, 59, date('n', $offset), date('d', $offset), date('Y', $offset)) + $user->timezone; + $start_of_today = mktime(0, 0, 0, date('n', time()), date('d', time()), date('Y', time())) + $user->timezone; + $end_of_today = mktime(23, 59, 59, date('n', time()), date('d', time()), date('Y', time())) + $user->timezone; // Extract the requested date: if ($edit['year'] && $edit['month'] && $edit['day']) { |