Big-Sur-StatusArea icon indicating copy to clipboard operation
Big-Sur-StatusArea copied to clipboard

[Bug] Wrong date displayed

Open hyuri opened this issue 2 years ago • 11 comments

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:

  • Pop!_OS 21.10
  • Gnome 40.5
  • Extension Version: 39

hyuri avatar Apr 03 '22 05:04 hyuri

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?

ThierryHFR avatar Apr 05 '22 08:04 ThierryHFR

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)

hyuri avatar Apr 06 '22 03:04 hyuri

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

ThierryHFR avatar Apr 06 '22 12:04 ThierryHFR

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 avatar Apr 06 '22 12:04 hyuri

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

hyuri avatar Apr 10 '22 06:04 hyuri

Hi @hyuri, Can you give me a feedback?

ThierryHFR avatar Apr 13 '22 07:04 ThierryHFR

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 avatar Apr 13 '22 13:04 hyuri

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?

hyuri avatar Apr 14 '22 03:04 hyuri

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

ThierryHFR avatar Apr 14 '22 12:04 ThierryHFR

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

ThierryHFR avatar Apr 15 '22 15:04 ThierryHFR

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

3eif avatar Apr 17 '22 15:04 3eif