- LDAP backend will use internal squirrelmail charset conversion functions
instead of php xml extension. Fixes bug #655137.
- Added Wood theme and Silver Steel theme by Pavel Spatny and Simple Green theme
+ - Fix two time zone calculation bugs, thanks to David White
Version 1.5.0
--------------------
if ($invert_time) {
$dateZ = - $dateZ;
}
+
+ // calculate when it was midnight and when it will be,
+ // in order to display dates differently if they're 'today'
$midnight = $now - ($now % 86400) - $dateZ;
- $nextmid = $midnight + 86400 - $dateZ;
+ // this is to correct if after calculations midnight is more than
+ // one whole day away.
+ if ($now - $midnight > 86400) {
+ $midnight += 86400;
+ }
+ $nextmid = $midnight + 86400;
if (($show_full_date == 1) || ($nextmid < $stamp)) {
$date_format = _("M j, Y");
return ($mtime);
}
*/
-?>
\ No newline at end of file
+?>