diff --git a/examples/with-mobx/components/Clock.js b/examples/with-mobx/components/Clock.js index 394d4543192f8..caf2880817ad3 100644 --- a/examples/with-mobx/components/Clock.js +++ b/examples/with-mobx/components/Clock.js @@ -19,6 +19,6 @@ export default (props) => { ) } -const format = t => `${pad(t.getHours())}:${pad(t.getMinutes())}:${pad(t.getSeconds())}` +const format = t => `${pad(t.getUTCHours())}:${pad(t.getUTCMinutes())}:${pad(t.getUTCSeconds())}` const pad = n => n < 10 ? `0${n}` : n diff --git a/examples/with-redux/components/Clock.js b/examples/with-redux/components/Clock.js index bd09f5407e73d..d8e05ceae3f4b 100644 --- a/examples/with-redux/components/Clock.js +++ b/examples/with-redux/components/Clock.js @@ -19,6 +19,6 @@ export default ({ lastUpdate, light }) => { ) } -const format = t => `${pad(t.getHours())}:${pad(t.getMinutes())}:${pad(t.getSeconds())}` +const format = t => `${pad(t.getUTCHours())}:${pad(t.getUTCMinutes())}:${pad(t.getUTCSeconds())}` const pad = n => n < 10 ? `0${n}` : n