[PR #5745] docs: fix safeDateConversion to use milliseconds directly #14441

Closed
opened 2026-04-13 09:28:36 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5745

State: closed
Merged: Yes


Closes: https://github.com/better-auth/better-auth/pull/5743


Summary by cubic

Fixed the Clerk migration guide’s safeDateConversion example to use millisecond timestamps directly, removing the seconds-to-milliseconds conversion. This matches Clerk’s API and prevents invalid date calculations.

  • Bug Fixes
    • Use new Date(timestamp) to handle millisecond input from Clerk.

Written for commit 0cc1fd7f9c. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5745 **State:** closed **Merged:** Yes --- Closes: https://github.com/better-auth/better-auth/pull/5743 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed the Clerk migration guide’s safeDateConversion example to use millisecond timestamps directly, removing the seconds-to-milliseconds conversion. This matches Clerk’s API and prevents invalid date calculations. - **Bug Fixes** - Use new Date(timestamp) to handle millisecond input from Clerk. <sup>Written for commit 0cc1fd7f9cf3349b61052e3ac4272e68604868d6. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:28:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14441