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

Closed
opened 2026-03-13 12:50:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5743
Author: @kaanozdokmeci
Created: 11/3/2025
Status: Closed

Base: mainHead: patch-2


📝 Commits (1)

  • 006cf6e 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

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.


🔄 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/5743 **Author:** [@kaanozdokmeci](https://github.com/kaanozdokmeci) **Created:** 11/3/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`006cf6e`](https://github.com/better-auth/better-auth/commit/006cf6e1a03da01c364d94ad2969462c788da370) 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 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. --> --- <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-03-13 12:50: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#6193