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:
    Reproduced on 0.29.0 (originally found on 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.

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

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

1 Like

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.

6 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?

WHAT IS THE BUG

When trying to set a Due date in a task I get 2 kinds of off-by-1 bugs.

  1. When typing the desired date in the field using my keyboard, e.g. 15.12.2022, the date shows up as Dec 14, 2022.

  2. When selecting months in the date picker, specifically, November and December, I get the month before the selected month. This makes it impossible to select December.

HOW TO REPRODUCE IT

I have not tried to reproduce the bug, so I do not know if it is possible.

  1. I installed Anytype minutes before making the task.
  2. I followed the instructions in the video " Class Notes" by Anytype to make an object type called Course.
  3. Made a set of courses.
  4. Opened one of the courses and added a Task object.
  5. Tried to set Due date and discovered the bug.

THE EXPECTED BEHAVIOR

I would expect the desired date to be set in the Due date field after typing the date in by hand.

I would also expect the date picker to show me the selected month no matter which month I select.

SYSTEM INFORMATIONS

  • OS:
    Windows 10 Pro - 21H2 - 19044.1889
  • Device:
    Workstation / PC
  • Anytype Version:
    0.28.0

ADDITIONAL CONTEXT

None to mention.

No problem, my time zone is:
(UTC +01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna