Skip to content

Fix manual time entries storing with wrong timezone - #64

Open
Gawdl3y wants to merge 1 commit into
mainfrom
fix/manual-time-entry-tz
Open

Fix manual time entries storing with wrong timezone#64
Gawdl3y wants to merge 1 commit into
mainfrom
fix/manual-time-entry-tz

Conversation

@Gawdl3y

@Gawdl3y Gawdl3y commented Sep 10, 2026

Copy link
Copy Markdown
Member

Simply calling merge() on a FormRequest inside of passedValidation() doesn't update the validated data since a snapshot of the data is taken at the point of validation completing (before passedValidation() is called).

This PR:

  • Updates the call to merge() to store the ISO 8601 timestamp so it's more "raw" just like if there were no merge call (although this has no consequence the way it's currently used)
  • Overwrites the post-validation snapshot of the start and stop fields so the validated() call in the controller has the proper timezone

@Gawdl3y
Gawdl3y requested a review from a team September 10, 2026 20:56
@Gawdl3y Gawdl3y self-assigned this Sep 10, 2026
@Gawdl3y Gawdl3y added the bug Something isn't working label Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant