patel22p / mytinytodo

Automatically exported from code.google.com/p/mytinytodo
0 stars 0 forks source link

Default timezone should be set to use mktime safely #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Since PHP 5.1.0 timezone should be set to use mktime. It throw an exception 
otherwise. 
I'm running mytinytodo on PHP 5.3.1 and I've added :

date_default_timezone_set('Europe/Paris');

on line 12 of init.php to fix the problem. Timezone should be added to 
config.php and 
then set with :

date_default_timezone_set(Config::get('timezone'));

in init.php

I can send a patch if needed.

Original issue reported on code.google.com by Raphael.Emourgeon on 6 Mar 2010 at 10:09

GoogleCodeExporter commented 8 years ago
Will be fixed in v1.4.

Original comment by maxpozd...@gmail.com on 4 Oct 2010 at 7:06

GoogleCodeExporter commented 8 years ago

Original comment by maxpozd...@gmail.com on 25 Oct 2010 at 6:49