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

Closed
opened 2026-04-17 22:40:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5745
Author: @himself65
Created: 11/3/2025
Status: Merged
Merged: 11/3/2025
Merged by: @himself65

Base: canaryHead: patch-2


📝 Commits (1)

  • 0cc1fd7 Refactor safeDateConversion to use milliseconds directly

📊 Changes

1 file changed (+2 additions, -3 deletions)

View changed files

📝 docs/content/docs/guides/clerk-migration-guide.mdx (+2 -3)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5745 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/3/2025 **Status:** ✅ Merged **Merged:** 11/3/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`0cc1fd7`](https://github.com/better-auth/better-auth/commit/0cc1fd7f9cf3349b61052e3ac4272e68604868d6) Refactor safeDateConversion to use milliseconds directly ### 📊 Changes **1 file changed** (+2 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/guides/clerk-migration-guide.mdx` (+2 -3) </details> ### 📄 Description 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. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 22:40:23 -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#31795