ThierryHFR / Big-Sur-StatusArea

macOS Big Sur "System Tray" look for Gnome Desktop
https://www.pling.com/p/1427290/
26 stars 4 forks source link

[Bug] Wrong date displayed #80

Open hyuri opened 2 years ago

hyuri commented 2 years ago

Today is Sunday 3rd of April but here you can see it shows Saturday 2nd of April of 2022 (it's in Portuguese). image

The little calendar shows the correct date (again, it's in Portuguese): image

System Info:

ThierryHFR commented 2 years ago

hi @hyuri https://github.com/Ordissimo/Big-Sur-StatusArea/issues/74 https://github.com/Ordissimo/Big-Sur-StatusArea/issues/60 Can you look at these two outcomes? Do they correspond to your problem?

hyuri commented 2 years ago

Hi @Ordissimo

I looked. They do not correspond to my problem.

In my case, the time is correct, only the date shown at the top of the card that opens when I click on the time on the gnome panel is wrong. The date on the mini calendar at the bottom is correct.

The date only updates itself to the correct date when the machine restarts, or when it wakes up from suspend (and maybe when logging out & in? I haven't tried this)

ThierryHFR commented 2 years ago

Hi @hyuri Modify line 122 in indicator/calendar.js //this._date.setDate(now) As below: this._date.setDate(now)

I am waiting for your feedback

hyuri commented 2 years ago

Ok. Line 122 modified. Since I can only observe the issue at and after midnight, I'll check tonight and get back to you.

Thanks!

hyuri commented 2 years ago

That change didn't work. Issue remains.

See how it shows 9 of April at the top and 10 of April at the bottom: image

ThierryHFR commented 2 years ago

Hi @hyuri, Can you give me a feedback?

hyuri commented 2 years ago

Hi @Ordissimo Sure! I just saw an update available for the extension. I'm guessing it includes your changes above. I'll update and test it tonight.

Thanks!

hyuri commented 2 years ago

Unfortunately, still the same issue. image

Pretty weird bug :( Is it only me facing this issue? Perhaps it has something to do with my timezone or Brazilian format settings?

ThierryHFR commented 2 years ago

Hi @hyuri , actually the processing can be impacted by your time zone, but it shouldn't. I'll put it back in shape.

ThierryHFR commented 2 years ago

Hi @hyuri, Can you test this branch: fix-calendar I installed POP-OS in a VM and tested it for 48 hours.

3eif commented 2 years ago

Hi @hyuri, Can you test this branch: fix-calendar I installed POP-OS in a VM and tested it for 48 hours.

I am also having the same issue where the wrong date is displayed. I tried the new branch and it's still showing the wrong time.

Correct time (extension turned off): image

Wrong time (extension turned on): image