diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-08-08 16:54:31 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-08-08 16:54:31 -0700 |
commit | 2dda8e22a7a32db8a5577aad0cff2b47ac0f9c63 (patch) | |
tree | 7825612b434293f99c298bc3bc8b189dbfe28cbc /modules/gallery/helpers/gallery.php | |
parent | cdb6306d7e75451587fbc029b94ef197f42842f1 (diff) |
Use the gallery helper date/time functions wherever we format date
time for the browser. Fixes ticket #1278.
Diffstat (limited to 'modules/gallery/helpers/gallery.php')
-rw-r--r-- | modules/gallery/helpers/gallery.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php index 54d16322..3f83b23d 100644 --- a/modules/gallery/helpers/gallery.php +++ b/modules/gallery/helpers/gallery.php @@ -60,7 +60,7 @@ class gallery_Core { * @return string */ static function date_time($timestamp) { - return date(module::get_var("gallery", "date_time_format", "Y-M-d H:i:s"), $timestamp); + return date(module::get_var("gallery", "date_time_format"), $timestamp); } /** @@ -69,7 +69,7 @@ class gallery_Core { * @return string */ static function date($timestamp) { - return date(module::get_var("gallery", "date_format", "Y-M-d"), $timestamp); + return date(module::get_var("gallery", "date_format"), $timestamp); } /** |