git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3197
7612ce4b-ef26-0410-bec9-
ea0150e637f0
// corrects a time stamp to be the local time
function getGMTSeconds($stamp, $gmt) {
global $invert_time;
+
+ // date couldn't be parsed
+ if ($stamp == -1) {
+ return -1;
+ }
+
if (($gmt == 'Pacific') || ($gmt == 'PST')) {
$gmt = '-0800';
} else if (($gmt == 'EDT')) {
global $hour_format;
+ if ($stamp == -1) {
+ return '';
+ }
+
if ( $hour_format == SMPREF_TIME_12HR ) {
$date_format = _("D, F j, Y g:i a");
} else {