Names of days on date picker incorrect (off by one day)

WHAT IS THE BUG

The days of the week (Monday, Tuesday, Wednesday, etc.) do not correspond with the dates. For example, today (8/26/22) shows up as Thursday, when it’s actually Friday. Screenshots of date picker and a calendar are attached.

HOW TO REPRODUCE IT

Just open any date picker field and I encounter this issue.

THE EXPECTED BEHAVIOR

I would expect the days of the week on the picker to be the correct days.

SYSTEM INFORMATIONS

  • OS:
    Mac OS 12.5.1
  • Device:
    Desktop
  • Anytype Version:
    0.27.0

ADDITIONAL CONTEXT

Have seen some reports about the time on date pickers being off relative to what it should be when selecting “Today” or “Tomorrow” and this sometimes throwing off the date entirely. Those reports seemed related to issues with time zones, however, and according to a bug report were supposed to be resolved in the latest version of Anytype (0.27.0). My issue is different, the names of the days of the week on the date picker itself are incorrect.

5 Likes

@ignatovv it should be monday to sunday and not sunday to saturday, please fix this!

1 Like

Fixed

4 Likes

Fixed in 0.28.0

This hasn’t been fixed, actually. All that changed was that the first day of the week on the calendar is now Monday. The calendar is still wrong, however. It says that today, Tuesday, August 30th, 2022, is a Monday. This is the same issue I was having before, the only difference is that the week displays as Monday-Sunday as opposed to Sunday to Saturday.

3 Likes

Thanks. Seems I’m just in the correct timezone.

What timezone do you have?

Eastern Time


I’ve changed time to GMT-4 and this is how August looks for me.

Looks fine on my device too

Screenshot from 2022-08-30 19-19-20

Not sure what to say. Both my devices have this issue.

Are you sure your app is updated to the latest version, which is 0.28.0?

Yes, I updated both devices and the calendar changed to the Monday-Sunday format, but still shows the wrong day for the date (i.e. Monday, August 30th instead of Tuesday, August 30th).

I need more info to understand whats going on - can you show several months - August, September, October, November for example? And show your system date/timezone settings if that’s possible.

Sure thing.

Calendar months




System Date/Time

Oh, I see, so you have previous day returned from the date function. Thank you, I will try to reproduce this.

1 Like

I’ve found the problem and fixed it, would be available in next release.

5 Likes

Brilliant! Will make a huge difference for me, thanks a bunch.

1 Like

Thank you too)

@Razor do you think this one is the same underlying issue or should we keep that report separate?