Daylight saving times

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!

Moderator: General Moderators

Post Reply
tores
Forum Contributor
Posts: 120
Joined: Fri Jun 18, 2004 3:04 am

Daylight saving times

Post by tores »

Hi

How can I get

Code: Select all

date('H:i:s', 60*60);
to display 01:00:00 instead of 02:00:00 during daylight savingtime?

regards tores
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

perhaps

Code: Select all

echo date("H:i:s", mktime(1, 0, 0));
tores
Forum Contributor
Posts: 120
Joined: Fri Jun 18, 2004 3:04 am

Post by tores »

Yepps, that works:)
Thanks a bunch
Post Reply