Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

User always sees their own timezone

  • Loading branch information...
commit cf624958bef8d28eb5579a25fd7e9a4f44a63658 1 parent 8c02d81
Josh Ellithorpe authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  simplechat.js
2  simplechat.js
@@ -27,7 +27,7 @@ if (Meteor.is_client) {
27 27 Template.chat.formatted_date = function(date) {
28 28 if (date.constructor === String) {
29 29 var date = new Date(date);
30   - date.setHours(date.getHours() - 7);
  30 + date.setMinutes(date.getMinutes() - date.getTimezoneOffset());
31 31
32 32 var hours = date.getUTCHours(),
33 33 minutes = date.getUTCMinutes(),

0 comments on commit cf62495

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