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

Date not saved correctly #216

Open
John-H-Smith opened this issue Aug 22, 2024 · 4 comments
Open

Date not saved correctly #216

John-H-Smith opened this issue Aug 22, 2024 · 4 comments
Assignees
Labels

Comments

@John-H-Smith
Copy link

when tracking track time for a project, the saved date is always set to the day before (yesterday by default) or the day before the selected date.

@faburem
Copy link
Collaborator

faburem commented Aug 23, 2024

Can you please provide a bit more context? Screenshot, Timezone information. I know this issue is has been reported in the past and we might have introduced a regression with the latest upgrade to Meteor.js version 3.0 but I still need that information for troubleshooting - thanks for your understanding!

@faburem faburem self-assigned this Aug 23, 2024
@faburem faburem added the bug label Aug 23, 2024
@lylebrown
Copy link

I can add more context as I'm seeing this as well. If I try to track time from a calendar view, if I click on a day or drag a project to a day, the dialog box that appears always sets it to the previous day.

I actually don't see where to add a time zone in the settings? But my time zone is United States/Phoenix.

I'm seeing this issue regardless of if I set my start day of the week to 0 or 1, and changing the time unit from the profile drop down does not make a difference either.

I am running the container in podman (which should be close enough to docker to not make a difference).

I see the following error in the log (but no other errors) -

[ERROR: Exception in setTimeout callback: @ Fri Dec 13 2024 10:32:28 GMT-0700 (Mountain Standard Time)] { 

  "browserInfo": { 

    "browser": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0", 

    "userId": "{REDACTED}", 

    "url": "https://{REDACTED}/tracktime?date=2024-11-30&view=M", 

    "resolution": "3440x1440" 

  }, 

  "stack": {} 

} 

@faburem
Copy link
Collaborator

faburem commented Dec 13, 2024

Hello and thanks for providing more information on this issue!
Podman should definitely work the same way as docker. I also think the error stack is unrelated but I will investigate it further regardless.
The reason why you don't see a timezone setting is that we are trying to autodetect it, convert it to UTC on the server and then convert it back to your timezone when data is displayed. I am starting to think that we are over complicating things since this has caused multiple issues in the past already. Having a manual setting for the timezone might mitigate this issue since we could use it on both server and client. I will work on a proof of concept an report back in this issue.

@lylebrown
Copy link

As a potential solution, one thing I've done with other mongo containers is pass the following volume:

- "/usr/share/zoneinfo/America/Phoenix:/etc/timezone:ro"

This allows for the timezone to passed from the host to the container. I'm not sure if this would be any easier than just configuring it to be a manual option in the settings, though.

faburem added a commit that referenced this issue Dec 18, 2024
🐛 trying to fix issue #216 - incorrect dates saved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants