Changeset 698


Ignore:
Timestamp:
Jan 16, 2005, 6:28:19 PM (19 years ago)
Author:
plg
Message:
  • the day of the week is not displayed when year is prior to 1970
Location:
trunk/include
Files:
2 edited

Legend:

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

    r688 r698  
    416416  $formated_date = '';
    417417  // before 1970, Microsoft Windows can't mktime
    418   if ($year >= 1970 or substr(PHP_OS, 0, 3) != 'WIN')
     418  if ($year >= 1970)
    419419  {
    420420    // we ask midday because Windows think it's prior to midnight with a
  • trunk/include/functions_category.inc.php

    r694 r698  
    648648          if (isset($page['calendar_day']))
    649649          {
    650             $unixdate = mktime(0,0,0,
    651                                $page['calendar_month'],
    652                                $page['calendar_day'],
    653                                $page['calendar_year']);
    654             $page['title'].= $lang['day'][date("w", $unixdate)];
     650            if ($page['calendar_year'] >= 1970)
     651            {
     652              $unixdate = mktime(0,0,0,
     653                                 $page['calendar_month'],
     654                                 $page['calendar_day'],
     655                                 $page['calendar_year']);
     656              $page['title'].= $lang['day'][date("w", $unixdate)];
     657            }
    655658            $page['title'].= ' '.$page['calendar_day'].', ';
    656659          }
Note: See TracChangeset for help on using the changeset viewer.