Skip to content

feat: support int and numeric string timestamps in date filter#137

Merged
osteele merged 1 commit intomainfrom
fix-110-date-timestamps
Feb 26, 2026
Merged

feat: support int and numeric string timestamps in date filter#137
osteele merged 1 commit intomainfrom
fix-110-date-timestamps

Conversation

@osteele
Copy link
Owner

@osteele osteele commented Feb 26, 2026

Summary

  • Add Unix timestamp support (int, uint, float types) in Convert() for time.Time targets
  • Parse numeric strings as Unix timestamps in ParseDate()
  • Matches Shopify Liquid behavior where integer values are treated as Unix timestamps

Fixes #110

Test plan

  • Unit tests for int, int64, float64 -> time.Time conversion
  • Unit tests for numeric string parsing in ParseDate
  • All existing tests pass

@osteele osteele merged commit 91b7b70 into main Feb 26, 2026
8 checks passed
@osteele osteele deleted the fix-110-date-timestamps branch February 26, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possibility to add transformation of Int & Strings into Dates (time.Time)

1 participant