Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activities date does not match was is entered, "back-steps" on editing activity #2192

Closed
privong opened this issue Dec 24, 2018 · 3 comments
Closed

Comments

@privong
Copy link

privong commented Dec 24, 2018

The "activities" entry and display seems to apparently incorrectly enter/display/edit the dates for activities. Every time the activities creation/editing window is entered, the date is shifted earlier by one day.

Steps to reproduce:

  1. Add an activity for a particular date
  2. The activity list on the user page shows the activity, but has it listed as the day prior to the one that was entered.
  3. If the activity is edited, the date shown in the edit is the same as the page shown on the user page. If this is saved without changes, the activity gets bumped

After step 1, the SQL database shows the following:

| 95 |          1 |             NULL | test                                                                             | NULL                                                                                                                                     | 2018-12-24 00:00:00 | 2018-12-24 05:13:13 | 2018-12-24 05:13:13 |

After step 3, it then shows:

| 95 |          1 |             NULL | test                                                                             | NULL                                                                                                                                     | 2018-12-23 00:00:00 | 2018-12-24 05:13:13 | 2018-12-24 05:16:13 |

The date_it_happened field is the one that changed. I wonder if this is some sort of timezone (configuration) issue. But it's not obvious to me why that might have this effect.

I am self-hosting monica and am running v2.11.0. This bug was also present in the previous version that I ran: v2.10.2. This appears to be related to #1813 and #2074. I am filing a new bug report since neither mention the issue of the activity date "back-stepping" on successive edits.

@djaiss
Copy link
Member

djaiss commented Jan 6, 2019

This was fixed here #2241
It's live in production already, and should end up in the next release.

@djaiss djaiss closed this as completed Jan 6, 2019
@djaiss
Copy link
Member

djaiss commented Jan 6, 2019

(Also, sorry about this problem and thanks a lot for reporting it)

@github-actions
Copy link

This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants