Skip to content

Commit 103fe7f

Browse files
committed
docs: update noon safe link
Signed-off-by: gpbl <io@gpbl.dev>
1 parent 62bddaa commit 103fe7f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/types/props.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export interface PropsBase {
301301
* for the possible values.
302302
*
303303
* @since 9.1.1
304-
* @see https://daypicker.dev/docs/time-zone
304+
* @see https://daypicker.dev/localization/setting-time-zone
305305
*/
306306
timeZone?: string | undefined;
307307
/**
@@ -312,7 +312,7 @@ export interface PropsBase {
312312
*
313313
* @since 9.13.0
314314
* @experimental
315-
* @see https://daypicker.dev/localization/setting-time-zone#historical-time-zones-with-second-offsets
315+
* @see https://daypicker.dev/localization/setting-time-zone#noonsafe
316316
*/
317317
noonSafe?: boolean | undefined;
318318
/**

website/docs/localization/setting-time-zone.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export function TimeZone() {
5555
<Examples.TimeZone />
5656
</BrowserWindow>
5757

58-
## Historical time zones with second offsets
58+
## Historical time zones with second offsets {#noonsafe}
5959

60-
Some historical time zones use offsets with seconds (for example `Asia/Dubai` in 1900 is `+03:41:12`). JavaScript `Date` and `date-fns` round offsets to minutes, which can push midnight calculations into the previous day. Set `noonSafe` to keep calendar math at 12:00 in the chosen time zone so the date never drifts.
60+
Some historical time zones use offsets with seconds (for example `Asia/Dubai` in 1900 is `+03:41:12`). JavaScript `Date` and `date-fns` round offsets to minutes, which can push midnight calculations into the previous day. Set `noonSafe` to keep calendar math at 12:00 in the chosen time zone so the date never drifts.
6161

6262
```ts
6363
const timeZone = "Asia/Dubai";

0 commit comments

Comments
 (0)