Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Fix gmtOffset #6

Merged
merged 4 commits into from
Feb 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/angular-clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
convert to msec
add local time zone offset
get UTC time in msec*/
var utc = now.getTime() + (now.getTimezoneOffset() * 60000);
var utc = now.getTime() + (now.getTimezoneOffset() * 3600000);
// create new Date object for different city
// using supplied offset
var offsetNow = new Date(utc + (3600000 * o.gmtOffset));
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-clock.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.