We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a99323c commit 42d6560Copy full SHA for 42d6560
examples/with-redux/components/clock.js
@@ -19,7 +19,4 @@ export default ({ lastUpdate, light }) => {
19
)
20
}
21
22
-const format = t =>
23
- `${pad(t.getUTCHours())}:${pad(t.getUTCMinutes())}:${pad(t.getUTCSeconds())}`
24
-
25
-const pad = n => (n < 10 ? `0${n}` : n)
+const format = t => t.toJSON().slice(11, 19) // cut off except hh:mm:ss
0 commit comments