alexa-tracking

Main Content

1024
1024
KASKUS
51
244
https://www.kaskus.co.id/thread/56ea737ad675d472788b4571/set-timezone-di-java-script
Set TimeZone di java script
mau tanya gan set timezone di javascript gmn ya ?
kalo di php kan kyk gini

date_default_timezone_set("Asia/Jakarta");
$timeNow = date('H:i');

thanks mastah
Quote:Original Posted By Kacank87
mau tanya gan set timezone di javascript gmn ya ?
kalo di php kan kyk gini

date_default_timezone_set("Asia/Jakarta");
$timeNow = date('H:i');

thanks mastah

Bukanya otomatis ngikut setting komputer client ya?
convert ke other timezone nemu disini :
http://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript