fix: standup generator time zones #130
No reviewers
Labels
No labels
bug
ci
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
performance
priority
P0
priority
P1
priority
P2
question
refactor
size
L
size
M
size
S
size
XL
size
XS
tests
trivial
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
noe.trevino/paso!130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bugfix/standup-notes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Checklist
CONTRIBUTING.mdgo test ./... -race) locallygofmt -w .andgolangci-lint run ./...respectivelyREADME.mdif applicableSummary
fixes an issue where logging wouldnt show in the generate.
Standup section of the application
@ -9,0 +11,4 @@// uses internally when storing and comparing datetime values. Using this format for// query parameters ensures correct string comparison with values stored via// DEFAULT CURRENT_TIMESTAMP (which the driver also normalizes to this format on read).const sqliteDatetimeFormat = "2006-01-02T15:04:05Z"The comment is self-contradictory and factually misleading. It says the driver uses this format "when storing and comparing datetime values", but the parenthetical immediately contradicts that: "which the driver also normalizes to this format on read". If normalization happens on read, the value is not stored in RFC3339.
DEFAULT CURRENT_TIMESTAMPin SQLite stores"YYYY-MM-DD HH:MM:SS"(noT, noZ). The constant is used as a query parameter format, not a storage format. The reason RFC3339 works is that SQLite'sdatetime()function (applied on both sides of the comparison) accepts multiple input formats including RFC3339, so it normalizes consistently. The comment should explain that, not claim the driver stores in this format.