google-code-export / candydolldb

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

Date Warnings breaking site #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install normally over PHP/5.3.8
2.Setup xml data
3.Go to any page (example, model info).

What is the expected output? What do you see instead?
Correct dates, no warnings.
Boxes that are filled with a date statement are filled with a warning followed 
by the date, a lot of warnings are issued cause of the date statement not 
having a timezone, I'd recommend using date_default_timezone_set('UTC');
on every file that has date statement.

What version of the product are you using? On what operating system?
Apache/2.2.8 (Win32) PHP/5.3.8 -- SVN version of cdtvdb as of jan/10/12

Please provide any additional information below.
http://php.net/manual/en/function.date.php
http://php.net/manual/en/function.date-default-timezone-set.php

Original issue reported on code.google.com by gothicpi...@gmail.com on 10 Jan 2012 at 10:12

GoogleCodeExporter commented 9 years ago

Original comment by fwp...@gmail.com on 11 Jan 2012 at 11:14

GoogleCodeExporter commented 9 years ago
Thank you for pointing out this rather overwhelming bug - when I commented out 
the default timezone of my XAMPP-testserver, my screen could hardly cope with 
all the warnings... I took your advice and set the default timezone explicitly 
in the primairy include-file (cd.php).

Original comment by fwp...@gmail.com on 11 Jan 2012 at 5:27