Skip to content
Browse files

User always sees their own timezone

  • Loading branch information...
1 parent 8c02d81 commit cf624958bef8d28eb5579a25fd7e9a4f44a63658 @zquestz committed Jul 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 simplechat.js
View
2 simplechat.js
@@ -27,7 +27,7 @@ if (Meteor.is_client) {
Template.chat.formatted_date = function(date) {
if (date.constructor === String) {
var date = new Date(date);
- date.setHours(date.getHours() - 7);
+ date.setMinutes(date.getMinutes() - date.getTimezoneOffset());
var hours = date.getUTCHours(),
minutes = date.getUTCMinutes(),

0 comments on commit cf62495

Please sign in to comment.
Something went wrong with that request. Please try again.