File size: 527 Bytes
cf86710
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from "react";

import { DayPicker, TZDate } from "react-day-picker";

const now = new Date();

export function TestCase2833() {
  const timeZone = "Pacific/Honolulu";
  return (
    <div>
      <p data-testid="now">now: {now.toString()}</p>
      <p data-testid="timezone">time-zone: {timeZone}</p>
      <p>disabled before: {TZDate.tz(timeZone).toString()}</p>
      <DayPicker
        mode="single"
        timeZone={timeZone}
        disabled={{ before: now }}
        selected={now}
      />
    </div>
  );
}