Timezone issue? - Printable Version +- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com) +-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html) +--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html) +--- Thread: Timezone issue? (/thread-280.html) |
Timezone issue? - Brian - 06-14-2010 I am getting these two messages pretty much any time I do anything while trying to upload/check in a document: Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in /usr/local/www/opendocman/functions.php on line 56 Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in /usr/local/www/opendocman/functions.php on line 56 Not always both and not always the same line. I think I am missing a variable in my config.php but I cannot figure out what and what the format should be. Thanks. Brian Running on Freebsd8/Apache22/MySQL 5.5.4-m3 Re: Timezone issue? - Stephen - 06-14-2010 Check your php.ini for date.timezone settings Re: Timezone issue? - tiaka - 10-22-2013 I had to open the functions.php find the code below around line 77 file and add this line Code: /** Time Zone Required */ to the bottom removing this code Code: return date('d M Y (H:i)', mktime($timearr[0], $timearr[1], $timearr[2], $datearr[1], $datearr[2], $datearr[0]));[/col Code: // BEGIN FUNCTIONS |