Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Fixes #42: Use user timezone in date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
philcali committed Jun 11, 2012
1 parent 93f018a commit dc8fcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static function _s($key, $a = null) {
}

static function format_time($time) {
return date("l, d F Y, h:i A", $time);
return userdate($time, '%A, %d %B %Y, %I:%M %P');
}

static function cleanup($table, $itemid) {
Expand Down

0 comments on commit dc8fcfd

Please sign in to comment.