Skip to content

Commit 96f7ca3

Browse files
authored
[O2B-1083] Fix a bug in LHC overview pages, now displaying missing dates as '-' instead of the default epoch time (#1298)
1 parent 6359923 commit 96f7ca3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/database/adapters/LhcFillAdapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class LhcFillAdapter {
4949

5050
return {
5151
fillNumber,
52-
stableBeamsStart: new Date(stableBeamsStart).getTime(),
53-
stableBeamsEnd: new Date(stableBeamsEnd).getTime(),
52+
stableBeamsStart: stableBeamsStart ? new Date(stableBeamsStart).getTime() : stableBeamsStart,
53+
stableBeamsEnd: stableBeamsEnd ? new Date(stableBeamsEnd).getTime() : stableBeamsEnd,
5454
stableBeamsDuration,
5555
beamType,
5656
fillingSchemeName,

0 commit comments

Comments
 (0)