date_default_timezone_set()
& date()
functions return correct date & time for all countries except for Greenland & Kazakhstan.
The following returns 1 hour behind of the correct time in Greenland.
date_default_timezone_set("America/Nuuk");
echo date("Y-m-d H:i:s");
The following returns 1 hour ahead of the correct time in Kazakhstan.
date_default_timezone_set("Asia/Almaty");
echo date("Y-m-d H:i:s");
How can I get the correct time in Greenland & Kazakhstan?