[2023-01-23] 4images 1.10 released
0 Members and 1 Guest are viewing this topic.
function format_date($format, $timestamp) { global $user_info; $timezone_offset = (defined("TIME_OFFSET")) ? TIME_OFFSET : 0; return date($format, $timestamp + (3600 * $timezone_offset));}
function format_date($format, $timestamp) { global $user_info; $timezone_offset = (defined("TIME_OFFSET")) ? TIME_OFFSET : 0; $myformat = array('Y m d', ', G:H', 'D'); $firststep = date($myformat[0], $timestamp + (3600 * $timezone_offset)); $secstep = explode(" ", $firststep); require_once 'jalali.php'; list( $jy, $jm, $jd ) = gregorian_to_jalali($secstep[0], $secstep[1], $secstep[2]); $myday = date($myformat[2], $timestamp + (3600 * $timezone_offset)); return giveday($myday) . ' ' . $jd . ' ' . givemonth($jm) . ' ' . $jy.date($myformat[1], $timestamp + (3600 * $timezone_offset));}