2016-08-28, 17:36:21
Edit news_manager/inc/functions.php, find this (line 101 or so):
Just below that line, insert this:
Now you can optionally use the date format instead of strftime, so for ISO 8601 date you can use:
(This will be added to NM 3.4, so you won't need to edit the plugin again when you upgrade.)
Code:
function nm_get_date($format, $timestamp) {
Just below that line, insert this:
Code:
if (strpos($format, '%') === false) {
global $TIMEZONE;
if ($TIMEZONE != '') {
if (function_exists('date_default_timezone_set')) {
date_default_timezone_set($TIMEZONE);
}
}
return date($format, $timestamp);
}
Now you can optionally use the date format instead of strftime, so for ISO 8601 date you can use:
Code:
<?php nm_post_date("c"); ?>
(This will be added to NM 3.4, so you won't need to edit the plugin again when you upgrade.)