mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
date format can be passed to getConvertDateFormat()
This commit is contained in:
parent
70a455c422
commit
01fd55832f
|
@ -33,9 +33,11 @@ function formatted_size($size_bytes) { /* {{{ */
|
||||||
* dd for %d
|
* dd for %d
|
||||||
* This functions returns the converted format
|
* This functions returns the converted format
|
||||||
*/
|
*/
|
||||||
function getConvertDateFormat() { /* {{{ */
|
function getConvertDateFormat($dateformat) { /* {{{ */
|
||||||
global $settings;
|
global $settings;
|
||||||
if($settings->_dateformat) {
|
if(!$dateformat)
|
||||||
|
$dateformat = $settings->_dateformat;
|
||||||
|
if($dateformat) {
|
||||||
return str_replace(['y', 'Y', 'm', 'M', 'F', 'd', 'l', 'D'], ['yy', 'yyyy', 'mm', 'M', 'MM', 'dd', 'DD', 'D'], $settings->_dateformat);
|
return str_replace(['y', 'Y', 'm', 'M', 'F', 'd', 'l', 'D'], ['yy', 'yyyy', 'mm', 'M', 'MM', 'dd', 'DD', 'D'], $settings->_dateformat);
|
||||||
} else
|
} else
|
||||||
return 'yyyy-mm-dd';
|
return 'yyyy-mm-dd';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user