This PR updates our date formatting to use a similar algorithm, which was pulled from the monorepo. This implementation uses date-fns instead of moment, since moment is no longer recommended.
TO QA:
Run a build and look a the time info in the Addon area.
Visit the StoryInfo story (what a mouthful lol) and use the controls to adjust the time info.
📦 Published PR as canary version: 1.1.3--canary.178.c2a97b7.0
:sparkles: Test out this PR locally via:
```bash
npm install @chromatic-com/storybook@1.1.3--canary.178.c2a97b7.0
# or
yarn add @chromatic-com/storybook@1.1.3--canary.178.c2a97b7.0
```
This PR updates our date formatting to use a similar algorithm, which was pulled from the monorepo. This implementation uses
date-fns
instead ofmoment
, sincemoment
is no longer recommended.TO QA:
Visit the StoryInfo story (what a mouthful lol) and use the controls to adjust the time info.
📦 Published PR as canary version:
1.1.3--canary.178.c2a97b7.0
:sparkles: Test out this PR locally via: ```bash npm install @chromatic-com/storybook@1.1.3--canary.178.c2a97b7.0 # or yarn add @chromatic-com/storybook@1.1.3--canary.178.c2a97b7.0 ```