DEV Community

tyamahori
tyamahori

Posted on

DateTime

What is a problem?

When I was reading and coding PHP, I found DateTime object was not working...

Because ...

Time zone setting was not specified...

What I learned

Remember to specify time zone setting.

Top comments (1)

Collapse
 
thinsoldier profile image
thinsoldier

Don't forget to specify session timezone in mysql database connections. (not always necessary depending on your situation)