Commit 777ac487 authored by Simon Welsh's avatar Simon Welsh

Always use NZT for the expiration date

git-svn-id: svn+ssh://lsgn/var/logbot-www@57 5f99df0c-6b0a-442a-b40a-040688e84a9d
parent c3ed111c
......@@ -69,7 +69,8 @@ function build_dates() {
$td = date('j');
if(isset($dates[$ty][$tm][$td])) {
$r->set('log:dates', $dates);
$r->expireAt('log:dates', strtotime('midnight tomorrow'));
$d = new DateTime('midnight tomorrow', new DateTimeZone('Pacific/Auckland'));
$r->expireAt('log:dates', $d->format('U'));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment