Skip to content

Commit

Permalink
Chore: User set UTC offset (#25381)
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
  • Loading branch information
albuquerquefabio and ggazzo authored May 18, 2022
1 parent d170c48 commit 45b46da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/meteor/client/startup/userSetUtcOffset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Meteor.startup(() => {

const utcOffset = moment().utcOffset() / 60;

if (!user) {
return;
}
if (user.utcOffset !== utcOffset) {
Meteor.call('userSetUtcOffset', utcOffset);
}
Expand Down

0 comments on commit 45b46da

Please sign in to comment.