X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fdate.php;h=e40cf7c6f221fcf66748c2ea8eddc0881f7229e8;hb=146b46ac549c53a1137d0151ec9b367371e0162c;hp=65db2003b21b90f591e2a043b42d78b47242a539;hpb=b0d8461bee7238b3eb1fae970edd4015cd4c9336;p=squirrelmail.git diff --git a/functions/date.php b/functions/date.php index 65db2003..e40cf7c6 100644 --- a/functions/date.php +++ b/functions/date.php @@ -3,14 +3,13 @@ /** * date.php * - * Copyright (c) 1999-2004 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * * Takes a date and parses it into a usable format. The form that a * date SHOULD arrive in is: * 29 Jun 1999 09:52:11 -0500 (EDT) * (as specified in RFC 822) -- 'Tue' is optional * + * @copyright © 1999-2005 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail * @subpackage date @@ -90,7 +89,7 @@ function getGMTSeconds($stamp, $tzc) { if ($neg) $iTzc = -1 * (int) $iTzc; /* stamp in gmt */ $stamp -= $iTzc; - /** now find what the server is at **/ + /* now find what the server is at */ $current = date('Z', time()); /* stamp in local timezone */ $stamp += $current; @@ -315,7 +314,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 +366,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 */ @@ -391,18 +390,18 @@ function getDateString( $stamp ) { * @return int the timestamp calculated from the header */ function getTimeStamp($dateParts) { - /** $dateParts[0] == Mon, Tue, Wed - ** $dateParts[1] == 23 - ** $dateParts[2] == Jan, Feb, Mar - ** $dateParts[3] == 1999 - ** $dateParts[4] ==