Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get current timezone offset

console.log(new Date().getTimezoneOffset()/-60) // offset in hours
Source by attacomsian.com #
 
PREVIOUS NEXT
Tagged: #js #current #timezone #offset
ADD COMMENT
Topic
Name
5+6 =