with the timezone
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7381
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$now = time();
$dateZ = date('Z', $now );
$now = time();
$dateZ = date('Z', $now );
+
+ // FIXME: isn't this obsolete and introduced as a terrible workaround
+ // for bugs at other places which are fixed a long time ago?
if ($invert_time) {
$dateZ = - $dateZ;
}
$midnight = $now - ($now % 86400) - $dateZ;
if ($invert_time) {
$dateZ = - $dateZ;
}
$midnight = $now - ($now % 86400) - $dateZ;
- $nextmid = $midnight + 86400;
+ $nextmid = $midnight + 86400 - $dateZ;
if (($show_full_date == 1) || ($nextmid < $stamp)) {
$date_format = _("M j, Y");
if (($show_full_date == 1) || ($nextmid < $stamp)) {
$date_format = _("M j, Y");