Browse Source

QUAL Removed E_STRICT warning about time zones

Frederic G. Marand 17 years ago
parent
commit
6894af5ebe
1 changed files with 2 additions and 1 deletions
  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();