Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fall back on the local UTC offset if geolocation fails

  • Loading branch information...
commit 93a675bc02859026cbe2a14a5bf2ba2f99e6e374 1 parent b810e28
@mihaip mihaip authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  clock/script.js
View
1  clock/script.js
@@ -374,6 +374,7 @@ function getCurrentPosSuccessFunction(position) {
function getCurrentPosErrorFunction(error) {
console.log("Geocoder failed");
+ local = -new Date().getTimezoneOffset()/60;
setupClocks();
setupAlarms();
setupTimer();
Please sign in to comment.
Something went wrong with that request. Please try again.