mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-17 09:02:11 +00:00
Fixed NaN in clock
This commit is contained in:
parent
550d32ee33
commit
a57405a7a5
2
lib/SvelteUi/app/dist/index.js
vendored
2
lib/SvelteUi/app/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -6,10 +6,10 @@
|
||||
export let offset;
|
||||
|
||||
let showFull;
|
||||
let adjusteTimestamp;
|
||||
$:{
|
||||
showFull = Math.abs(new Date().getTime()-timestamp.getTime()) < 300000;
|
||||
addHours(timestamp, offset);
|
||||
if(!isNaN(offset))
|
||||
addHours(timestamp, offset);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user