Date and time in php ?
Hi all, anyone know how to set the dates and times in PHP please ? Through some work and researching I've made the code below, but it doesn't automatically change for daylight saving ? Also, does anyone know of a way to get the seconds to be changing while on the page please ? (Dynamic ?)
#echo date("l, \\t\h\e jS of F, Y, H:i:s a");
echo date("l, \\t\h\e jS \of F, Y, H:i:s a");
Any help appreciated.
Aaah, yep, good point. Perhaps I'll pop over to the js section. Unless anyone knows the answer here ?
GMT doesn't have daylight savings. Try a relevant location-based timezone string instead, e.g. Europe/London.
ok, many thanks -back to the drawing board !
Originally Posted by Salathe