PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am looking to get the current time zone and change it to EUROPE, if possible UK GMT.
I tried date_default_timezone_get() but the command does not seem to be recognized.
Anybody know the code like UTC for UK time setting using date_default_timezone_set()???
feyd, date('Z') returns 10800. wots the meaning of that???
Is it possible to tell an application or a file to use a particular zone say for example GMT as standard?
When we use NOW() in Mysql it uses local server time, if I want that in a different timezone how do I do that???
Z Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. -43200 through 43200
I personally always store timestamps in integer form in databases. However, this may help you find what you need to change.. although you could simply perform the necessary calculations in your queries..