Etar-Calendar icon indicating copy to clipboard operation
Etar-Calendar copied to clipboard

add event bug (random date used)

Open zoff99 opened this issue 7 years ago • 4 comments

how to see the bug:

*) open etar (month view as standard view when opening) *) press "today" button (now is 22.08.2016) *) now press red "+" button to add event *) the new event has prefilled date: 08.Aug.2016

that is strange

also sometimes it prefills with first date of month sometimes it seems to choose a random Monday

the "+" button should always use "todays" date i think at last it should not be a random date

zoff99 avatar Aug 22 '16 10:08 zoff99

Hm thats strange. When I try your steps I get always the todays date. When I switch from today view to month view and then press + button I get the first date of month. But when I press the today button first I get the todays date. Android 4.4.4

Gitsaibot avatar Aug 23 '16 18:08 Gitsaibot

the same goes for "time" when adding a new event. this should always be a fixed logic

zoff99 avatar Aug 23 '16 18:08 zoff99

I did a bunch of testing. I found that Etar seems to have the concept of the active date, which is what gets filled in when you create a new event. The active date is not based exclusively on the current state. Rather, it is based on the last action you took and sometimes the previous state. Here is what I believe to be a comprehensive list of all actions, whether they affect the active date, and, if so, how.

Note: Opening the app is considered the same as changing the view

  • Pressing the Today buttom -> today
  • Changing to the monthly view -> first day of the month
  • Changing to the weekly, daily, or agenda view -> No change
    • The day or week shown is based on the active date
  • In monthly view, scrolling down to the next month -> first sunday of the month
  • In monthly view, scrolling up to the previous month -> second to last sunday of the month
  • In weekly view, swiping left/right to the next/previous month -> add/subtract 7 days
  • In daily or agenda view, swiping or scrolling -> visible date
  • In weekly view, tapping on an empty time slot -> that day (and also that time).

There is one special case: If you click the FAB to add a new event, then press cancel or hit back, and the active month is this month, and the active date is not the 1st of the month, then the active date will be set to today's date. Rephrased as steps to reproduce: scroll through monthly view and end up on this month, create a new event, then cancel it; the next time you create an event it will auto-fill today's date.

I'll give this a bit more thought, then edit it to include how I think the actions should affect the active date.

smichel17 avatar May 10 '17 07:05 smichel17

So, because #1148

jtagcat avatar Jun 01 '22 15:06 jtagcat