From 8f6e21174c083a35da246497aa08c77f122a3d42 Mon Sep 17 00:00:00 2001 From: Mike Cohen Date: Wed, 9 Oct 2024 14:41:38 +1000 Subject: [PATCH] Fix timeline markers timezone correction. (#3807) --- gui/velociraptor/src/components/timeline/timeline.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/velociraptor/src/components/timeline/timeline.jsx b/gui/velociraptor/src/components/timeline/timeline.jsx index 448e31bc07..37501a71a1 100644 --- a/gui/velociraptor/src/components/timeline/timeline.jsx +++ b/gui/velociraptor/src/components/timeline/timeline.jsx @@ -746,7 +746,7 @@ export default class TimelineRenderer extends React.Component { if (!zone) { return ts; } - return moment.utc(ts).subtract(zone.utcOffset(), "minutes").valueOf(); + return moment.utc(ts).subtract(zone.utcOffset(ts), "minutes").valueOf(); } fromLocalTZ = ts=>{ @@ -755,7 +755,7 @@ export default class TimelineRenderer extends React.Component { if (!zone) { return ts; } - return moment.utc(ts).add(zone.utcOffset(), "minutes").valueOf(); + return moment.utc(ts).add(zone.utcOffset(ts), "minutes").valueOf(); } render() {