Преглед на файлове

QUAL Removed E_STRICT warning about time zones

Frederic G. Marand преди 17 години
родител
ревизия
6894af5ebe
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      u_date_code.php

+ 2 - 1
u_date_code.php

@@ -4,7 +4,7 @@
  * format: [y]ymdd
  * 4-characters until 2009-12-31, 5 afterwards
  *
- * $Id: u_date_code.php,v 1.2 2006-12-03 23:20:08 marand Exp $
+ * $Id: u_date_code.php,v 1.3 2007-04-29 15:40:29 marand Exp $
  */
 
 require_once('misc.php');          // needed for "iComparable" interface
@@ -75,6 +75,7 @@ class osinet_date_code implements iComparable
 
   public function __construct($time = null)
     {
+    date_default_timezone_set('Europe/Paris');
     if (!$time)
       $time = time();
     $date = getdate();