Created
October 7, 2010 13:48
-
-
Save kasperg/615123 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$date = date_make_date($value[$v], $value['timezone_db']); | |
if ($date) { | |
date_timezone_set($date, timezone_open($value['timezone'])); | |
//If the time is not midnight (0:00) when use medium format containing hours and minutes | |
$format = (intval(date_format_date($date, 'custom', 'Gi')) > 0) ? 'medium' : 'small'; | |
$date_values[] = date_format_date($date, $format); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment