From: jangliss Date: Wed, 26 Jan 2005 16:45:05 +0000 (+0000) Subject: 24hr date format should include a leading 0... Not seen any clocks without X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3f7e6af3fe5b6d272d3082219af7aaa630bf8e5d;p=squirrelmail.git 24hr date format should include a leading 0... Not seen any clocks without one yet. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8705 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index 9e2177bc..d7d0d3ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -190,6 +190,7 @@ Version 1.5.1 -- CVS [CAN-2005-0103] - Security: Fix possible XSS issues in src/webmail.php. [CAN-2005-0104] - Fix undefined variables in src/webmail.php. + - 24hr clock format should include a leading 0. Version 1.5.0 -------------------- diff --git a/functions/date.php b/functions/date.php index a2a88566..6371d25d 100644 --- a/functions/date.php +++ b/functions/date.php @@ -315,7 +315,7 @@ function getLongDateString( $stamp ) { if ( $hour_format == SMPREF_TIME_12HR ) { $date_format = _("D, F j, Y g:i a"); } else { - $date_format = _("D, F j, Y G:i"); + $date_format = _("D, F j, Y H:i"); } return( date_intl( $date_format, $stamp ) ); @@ -367,14 +367,14 @@ function getDateString( $stamp ) { if ( $hour_format == SMPREF_TIME_12HR ) { $date_format = _("g:i a"); } else { - $date_format = _("G:i"); + $date_format = _("H:i"); } } else if ($midnight - 518400 < $stamp) { /* This week */ if ( $hour_format == SMPREF_TIME_12HR ) { $date_format = _("D, g:i a"); } else { - $date_format = _("D, G:i"); + $date_format = _("D, H:i"); } } else { /* before this week */ @@ -455,4 +455,4 @@ function getTimeStamp($dateParts) { return ($mtime); } */ -?> \ No newline at end of file +?>