meteor_supercalendar icon indicating copy to clipboard operation
meteor_supercalendar copied to clipboard

Issue with time zone on the front end

Open theroadrunnershow opened this issue 9 years ago • 9 comments

How to reproduce:

  1. When i create an event on a date with "I dont know the time", I think its trying to create event IN GMT with time=00:00. my intention is to create event with time stamp: 23 April 00:00 Pacific
  2. event got created successfully with 23 April 00:00 GMT = 22 April 17:00 local
  3. UI automaticallt adjusts to my local TZ (PST) and shows new event with 22 april 17:00
  4. I feel in step 1, the event should be created in local TZ

theroadrunnershow avatar Apr 20 '15 17:04 theroadrunnershow

Makes sense. May be easy to fix.

gabrielhpugliese avatar Apr 20 '15 17:04 gabrielhpugliese

I've created an event without time and this is what I've got: image

It's GMT-0300 (BRT) and it is correct for my TZ. In this case, what is the output you expect to be?

gabrielhpugliese avatar Apr 20 '15 21:04 gabrielhpugliese

I think it should be: Tue Apr 21 2015 00:00:00 BRT

Reason: the UI is always in the local time zone (I think)

On Mon, Apr 20, 2015 at 2:15 PM, Gabriel H Pugliese < [email protected]> wrote:

I've created an event without time and this is what I've got: [image: image] https://cloud.githubusercontent.com/assets/1252818/7240642/ff5e224c-e788-11e4-9df4-2a35724e1bcc.png

It's GMT-0300 (BRT) and it is correct for my TZ. In this case, what are the output you expect to be?

— Reply to this email directly or view it on GitHub https://github.com/gabrielhpugliese/meteor_supercalendar/issues/8#issuecomment-94570785 .

theroadrunnershow avatar Apr 20 '15 22:04 theroadrunnershow

But it is 00:00:00 BRT! :)

gabrielhpugliese avatar Apr 20 '15 22:04 gabrielhpugliese

"When: Tue Apr 21 2015 00:00:00 GMT-0300 0(BRT)"

gabrielhpugliese avatar Apr 20 '15 23:04 gabrielhpugliese

Sorry my bad , then I think the UI calendar is showing the time in GMT only and not local time zone? If this is the case it is ok, but not very understandable.

On Mon, Apr 20, 2015 at 4:00 PM, Gabriel H Pugliese < [email protected]> wrote:

"When: Tue Apr 21 2015 00:00:00 GMT-0300 0(BRT)"

— Reply to this email directly or view it on GitHub https://github.com/gabrielhpugliese/meteor_supercalendar/issues/8#issuecomment-94587848 .

theroadrunnershow avatar Apr 21 '15 01:04 theroadrunnershow

Are you trying to deploy on a server with a different TZ?

gabrielhpugliese avatar Apr 21 '15 01:04 gabrielhpugliese

No I am not. I found this while testing in your sample meteor app. And I am in pacific time zone .

On Apr 20, 2015, at 6:42 PM, Gabriel H Pugliese [email protected] wrote:

Are you trying to deploy on a server with a different TZ?

— Reply to this email directly or view it on GitHub.

theroadrunnershow avatar Apr 21 '15 16:04 theroadrunnershow

Oh I see. The server may be in another timezone and I think that is the problem. Going to debug it better!

On Tue, Apr 21, 2015 at 1:26 PM theroadrunnershow [email protected] wrote:

No I am not. I found this while testing in your sample meteor app. And I am in pacific time zone .

On Apr 20, 2015, at 6:42 PM, Gabriel H Pugliese < [email protected]> wrote:

Are you trying to deploy on a server with a different TZ?

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/gabrielhpugliese/meteor_supercalendar/issues/8#issuecomment-94861334 .

gabrielhpugliese avatar Apr 21 '15 16:04 gabrielhpugliese