sthewissen / MVP

Unofficial app to help MVPs manage their community activities
GNU General Public License v3.0
112 stars 31 forks source link

[Bug] Date sometimes comes through wrong after saving (-1 day) #117

Open sthewissen opened 3 years ago

sthewissen commented 3 years ago

Somehow the date of an activity is being impacted by timezones etc. Meaning that when you create one at a certain time the date might be off once it comes back from the MVP API. The date chosen by the user or taken from the metadata provided by a URL-based entry should be timezone agnostic and simply be the date that the user expects.

I've particularly noticed this on the "copy metadata from URL" functionality.

mallibone commented 3 years ago

Do you have any more hints how this issue could be reproduced? I have had a look at the code and made some changes, but I would like to give it a thorough testing. 🙂

sthewissen commented 3 years ago

I've typically seen it in the non-demo scenario (obviously) as it involves sending the date over to the MVP API, them storing it in their DB in a certain way and then pooping it back out differently. In that case; put a URL on the clipboard (e.g. a NullPointers pod as that has a date) make an activity based on it and save. Refresh frontpage and the date coming back could be a day earlier somehow.