Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the timezone for example dates #2654

Merged
merged 1 commit into from
Jan 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/official-storybook/stories/addon-knobs.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ storiesOf('Addons|Knobs.withKnobs', module)
const nice = boolean('Nice', true);

// NOTE: the default value must not change - e.g., do not do date('Label', new Date()) or date('Label')
const defaultBirthday = new Date('Jan 20 2017');
const defaultBirthday = new Date('Jan 20 2017 GMT+0');
const birthday = date('Birthday', defaultBirthday);

const intro = `My name is ${name}, I'm ${age} years old, and my favorite fruit is ${fruit}.`;
Expand Down Expand Up @@ -124,7 +124,7 @@ storiesOf('Addons|Knobs.withKnobsOptions', module)
const nice = boolean('Nice', true);

// NOTE: the default value must not change - e.g., do not do date('Label', new Date()) or date('Label')
const defaultBirthday = new Date('Jan 20 2017');
const defaultBirthday = new Date('Jan 20 2017 GMT+0');
const birthday = date('Birthday', defaultBirthday);

const intro = `My name is ${name}, I'm ${age} years old, and my favorite fruit is ${fruit}.`;
Expand Down