Skip to content

Commit

Permalink
Fix timeline markers timezone correction. (#3807)
Browse files Browse the repository at this point in the history
  • Loading branch information
scudette committed Oct 13, 2024
1 parent d429352 commit 8f6e211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/velociraptor/src/components/timeline/timeline.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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=>{
Expand All @@ -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() {
Expand Down

0 comments on commit 8f6e211

Please sign in to comment.