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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.