diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-22 17:35:01 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-22 17:35:01 +0000 |
commit | f24eeff8f47fd97d0136684772a6b3eac892a6f8 (patch) | |
tree | 1f9d5b7fd11af6e7938922d5e0fd62a6372d6bf0 /week.php | |
parent | 565289afeb671058c92edcb40cc4ee993917ef82 (diff) | |
download | phpicalendar-f24eeff8f47fd97d0136684772a6b3eac892a6f8.tar.gz phpicalendar-f24eeff8f47fd97d0136684772a6b3eac892a6f8.tar.bz2 phpicalendar-f24eeff8f47fd97d0136684772a6b3eac892a6f8.zip |
24 hour time format inclusion.
Diffstat (limited to 'week.php')
-rw-r--r-- | week.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -213,7 +213,11 @@ $prev_week = date("Ymd", $prev_week2); $k = 0; $cal_time = $key; $key = strtotime ("$key"); - $key = date ("g:i A", $key); + if ($time_format == "24") { + $key = date ("G:i", $key); + } else { + $key = date ("g:i A", $key); + } // The first <TR> (on the hour) if (ereg("^([0-9]{1,2}):00", $key)) { |