mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-12-11 18:12:50 +00:00
get[Long]ReadableDate() takes argument as 'yyyy-mm-dd hh:ii:ss'
This commit is contained in:
parent
6bb4218e44
commit
363ce485e3
|
|
@ -28,6 +28,8 @@ function formatted_size($size_bytes) { /* {{{ */
|
||||||
|
|
||||||
function getReadableDate($timestamp) { /* {{{ */
|
function getReadableDate($timestamp) { /* {{{ */
|
||||||
global $settings;
|
global $settings;
|
||||||
|
if(!is_numeric($timestamp))
|
||||||
|
$timestamp = strtotime($timestamp);
|
||||||
if($settings->_dateformat)
|
if($settings->_dateformat)
|
||||||
return date($settings->_dateformat, $timestamp);
|
return date($settings->_dateformat, $timestamp);
|
||||||
else
|
else
|
||||||
|
|
@ -36,6 +38,8 @@ function getReadableDate($timestamp) { /* {{{ */
|
||||||
|
|
||||||
function getLongReadableDate($timestamp) { /* {{{ */
|
function getLongReadableDate($timestamp) { /* {{{ */
|
||||||
global $settings;
|
global $settings;
|
||||||
|
if(!is_numeric($timestamp))
|
||||||
|
$timestamp = strtotime($timestamp);
|
||||||
if($settings->_datetimeformat)
|
if($settings->_datetimeformat)
|
||||||
return date($settings->_datetimeformat, $timestamp);
|
return date($settings->_datetimeformat, $timestamp);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user