From 8c5f4702400108b142f360131c842e1dffde271e Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Fri, 5 Jan 2018 12:14:26 +1100 Subject: [PATCH] Fix the timezone for example dates --- examples/official-storybook/stories/addon-knobs.stories.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/official-storybook/stories/addon-knobs.stories.js b/examples/official-storybook/stories/addon-knobs.stories.js index d5ddfd0e7a55..50fda6c4d24e 100644 --- a/examples/official-storybook/stories/addon-knobs.stories.js +++ b/examples/official-storybook/stories/addon-knobs.stories.js @@ -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}.`; @@ -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}.`;