Skip to content

fix: return DATETIME columns as raw strings, default connection TZ to UTC#10

Merged
devakone merged 4 commits into
mainfrom
codex/fix-mysql-datetime-timezone-latest
May 16, 2026
Merged

fix: return DATETIME columns as raw strings, default connection TZ to UTC#10
devakone merged 4 commits into
mainfrom
codex/fix-mysql-datetime-timezone-latest

Conversation

@devakone

@devakone devakone commented May 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Return MySQL DATETIME/DATE/TIMESTAMP values as raw strings with mysql2 dateStrings enabled.
  • Default mysql2 connection timezone to UTC via MYSQL_TIMEZONE=Z, while allowing MYSQL_TIMEZONE overrides.
  • Add unit coverage for pool options and a skipped-by-default MySQL integration test for DATETIME string round trips.
  • Document the caller-visible Date-to-string behavior change. Versioning and changelog generation are left to release-please.

Validation

  • npm test
  • npm run build

Notes

  • The real MySQL datetime integration test runs only when MYSQL_DATETIME_INTEGRATION=true and test database env vars are provided.
  • This PR intentionally does not modify package.json version, CHANGELOG.md, package-lock.json, or .release-please-manifest.json.

@devakone devakone self-assigned this May 16, 2026
@devakone devakone merged commit dc76648 into main May 16, 2026
3 checks passed
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