wger icon indicating copy to clipboard operation
wger copied to clipboard

Weight tracker: Date selection

Open hubortje opened this issue 1 year ago • 2 comments

Steps to Reproduce

  1. Open the F-Droid App on GrapheneOS/Android
  2. Press + on the Weight tab

Expected results: The current date is automatically selected.

Actual results: The date of the latest entry is selected.

hubortje avatar Sep 17 '24 05:09 hubortje

Can i fix this issue ?

P-yiush07 avatar Sep 25 '24 07:09 P-yiush07

I believe this is fixed already.

Dieterbe avatar Sep 25 '24 10:09 Dieterbe

In the droid APP - its giving an error of wrong date format.

It populates with: MM/DD/YYYY but is expecting YYYY-MM-DD

This is with latest version installed as of today.

pschilly avatar Nov 17 '25 16:11 pschilly

@pschilly the date in the ui is localized, but should be sent as Iso8601 to the server. Are you getting errors when submitting the form?

rolandgeider avatar Nov 18 '25 11:11 rolandgeider

@pschilly the date in the ui is localized, but should be sent as Iso8601 to the server. Are you getting errors when submitting the form?

Yes thats correct. It won't let the form submit and save.

pschilly avatar Nov 18 '25 12:11 pschilly

Could you post a screenshot? Both of these worked fine for me

Image Image

rolandgeider avatar Nov 18 '25 12:11 rolandgeider

I will yes... as soon as cloudflare stops being dead hah

pschilly avatar Nov 18 '25 13:11 pschilly

Here it is - in the android app.

Image

pschilly avatar Nov 18 '25 15:11 pschilly

mhhh, are you perhaps using an older docker image? We did remove some time ago the constraint that you could only have one weight entry per day, so instead of the yyyy-mm-dd we now send a timestamp with time information, but that was some months ago

rolandgeider avatar Nov 18 '25 15:11 rolandgeider

mhhh, are you perhaps using an older docker image? We did remove some time ago the constraint that you could only have one weight entry per day, so instead of the yyyy-mm-dd we now send a timestamp with time information, but that was some months ago

Ahhh... im using whayever one was in the proxmox community scripts.. ill double back and try the latest docker

pschilly avatar Nov 18 '25 16:11 pschilly

ah those scripts! Those are using an older release (well, the last tagged one), you can safely use master, which is what we do as well. We might change how often we tag new releases in the future, but for now that's the solution :)

rolandgeider avatar Nov 18 '25 16:11 rolandgeider

Hey, I just installed wger on proxmox with the helper script. It seems to be up to date, see the photo. But it stil says wrong date format. Can someone help me? Thank you

Image Image

SuperOldboy avatar Jan 01 '26 22:01 SuperOldboy

@SuperOldboy note that while you have the latest released version, it's still an old one. We'll be doing more "proper" releases for the backend in the future (the "official" deployment via docker compose simply uses "latest"), take a look at #2150 which we need to finish first. After updating the mobile app should work fine again

rolandgeider avatar Jan 06 '26 17:01 rolandgeider