Skip to content

Conversation

@DallasHoff
Copy link

@DallasHoff DallasHoff commented Jan 1, 2026

I generated a migration before midnight in my timezone on Dec 31 and noticed that drizzle-kit generated a migration timestamped before my other migrations with the prefix 20250101. This happened because even though it was 2025 in my timezone, it was 2026 in UTC time, and prepareSnapshotFolderName uses getFullYear when it should use getUTCFullYear. This PR fixes that.

Example: prepareSnapshotFolderName(1767243310815)
Returned: '20250101045510'
Expected: '20260101045510'

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.

1 participant