[PR #5743] fix(docs): Refactor safeDateConversion in Clerk migration guide #14440

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

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

State: closed
Merged: No


Updated safeDateConversion function in the migration guide to use the timestamp returned by Clerk directly.
Clerk returns milliseconds now.


Summary by cubic

Updated the safeDateConversion example in the Clerk migration guide to use Clerk’s millisecond timestamp directly instead of multiplying by 1000. This aligns the docs with Clerk’s API and prevents invalid dates in the example.

Written for commit 006cf6e1a0. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5743 **State:** closed **Merged:** No --- Updated safeDateConversion function in the migration guide to use the timestamp returned by Clerk directly. Clerk returns milliseconds now. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated the safeDateConversion example in the Clerk migration guide to use Clerk’s millisecond timestamp directly instead of multiplying by 1000. This aligns the docs with Clerk’s API and prevents invalid dates in the example. <sup>Written for commit 006cf6e1a03da01c364d94ad2969462c788da370. 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:34 -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#14440