wger icon indicating copy to clipboard operation
wger copied to clipboard

Incorrect date displayed in Weight Overview

Open kais-codes opened this issue 1 year ago • 7 comments

Steps to Reproduce

  1. Navigate to "Add weight entry"
  2. Set a weight and date then save
  3. Viewing the entry in weight overview will display the date before the set date in step 2

Expected results: If I set 6/12/2023 for date and 123 for weight the entry in the weight overview should show the date as 6/12/2023 and weight as 123

Actual results: The entry in the weight overview shows the entry date as 6/11/2023 and weight as 123

Logs

kais-codes avatar Jun 12 '23 18:06 kais-codes

Is it always off by a month for you? In any case this isn't the intended behaviour

rolandgeider avatar Jun 13 '23 10:06 rolandgeider

Hi, my apologies, it is always off by a day and not a month as I use the MM/DD/YYYY format. I have tried multiple entries in different days/months/years and still results in the same thing.

kais-codes avatar Jun 14 '23 02:06 kais-codes

oh, yeah, that makes more sense! 😆

Still shouldn't do it, though. Perhaps some timezone thing?

rolandgeider avatar Jun 14 '23 07:06 rolandgeider

It could be a conflict with the timezone, is there a base timezone this is coded with? If there is, I can swap and see if the bug persists.

kais-codes avatar Jun 15 '23 15:06 kais-codes

sure, just set TIME_ZONE to a value from this list http://en.wikipedia.org/wiki/List_of_tz_zones_by_name

rolandgeider avatar Jun 16 '23 07:06 rolandgeider

yeah, this is very probably a timezone problem, got something similar recently

rolandgeider avatar Jun 26 '23 10:06 rolandgeider

Same Problem here. TIME_ZONE set to Europe/Berlin.

andbez avatar Jan 27 '24 23:01 andbez