Changeset 618


Ignore:
Timestamp:
Nov 24, 2004, 10:38:12 PM (19 years ago)
Author:
plg
Message:

bug on Windows for date 1970-01-01 : Windows refuses to work with 1970-01-01
00:00:00, "he" thinks it's prior to midnight... Let's force midday !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r606 r618  
    393393  if ($year >= 1970 or substr(PHP_OS, 0, 3) != 'WIN')
    394394  {
    395     $formated_date.= $lang['day'][date('w', mktime(0,0,0,$month,$day,$year))];
     395    // we ask midday because Windows think it's prior to midnight with a
     396    // zero and refuse to work
     397    $formated_date.= $lang['day'][date('w', mktime(12,0,0,$month,$day,$year))];
    396398  }
    397399  $formated_date.= ' '.$day;
Note: See TracChangeset for help on using the changeset viewer.