Skip to content

Commit

Permalink
Fix incorrect lastwritten and whenexpire volume values
Browse files Browse the repository at this point in the history
It has been reported by nisori in bacularis-app repository.

Bug report: bacularis/bacularis-app#5
  • Loading branch information
ganiuszka committed Feb 13, 2023
1 parent f982ae8 commit 5ef3834
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Web/JavaScript/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ var Units = {
var d = date;
if (/^\d{4}-\d{2}-\d{2} \d{1,2}:\d{2}:\d{2}$/.test(d)) {
var t = date_time_to_ts(d);
d = Units.format_date(t, true);
if (typeof(t) == 'number' && t >= 0) {
d = Units.format_date(t, true);
}
}
return d;
},
Expand Down

0 comments on commit 5ef3834

Please sign in to comment.