aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-01-16 17:28:19 +0000
committerplegall <plg@piwigo.org>2005-01-16 17:28:19 +0000
commitc443c97891b0edbefc4c388e4228fe7b24ec579b (patch)
tree6899e444fb300cc2297388bc493037af73789c5a /include/functions.inc.php
parentb9f05888cb46c632e66333561bd9c139144a51bf (diff)
- the day of the week is not displayed when year is prior to 1970
git-svn-id: http://piwigo.org/svn/trunk@698 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 9b4678f65..07bcb03b7 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -415,7 +415,7 @@ function format_date($date, $type = 'us', $show_time = false)
}
$formated_date = '';
// before 1970, Microsoft Windows can't mktime
- if ($year >= 1970 or substr(PHP_OS, 0, 3) != 'WIN')
+ if ($year >= 1970)
{
// we ask midday because Windows think it's prior to midnight with a
// zero and refuse to work