Skip to content

Commit

Permalink
Merge pull request #522 from slashrsm/521_report_local_time
Browse files Browse the repository at this point in the history
Display times on the report in local time.
  • Loading branch information
jeremyandrews authored Sep 20, 2022
2 parents 7c21abf + 4ee8f16 commit 119e618
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [#514](https://github.com/tag1consulting/goose/pull/514) fix panic when an empty wait time interval is set
- [#516](https://github.com/tag1consulting/goose/pull/516) fix unescaped inner quotes in csv logs
- [#519](https://github.com/tag1consulting/goose/pull/519) implement `Default` for `GooseConfiguration`
- [#522](https://github.com/tag1consulting/goose/pull/522) display times on the report in local time (instead of UTC)

## 0.16.3 July 17, 2022
- [#498](https://github.com/tag1consulting/goose/issues/498) ignore `GooseDefault::Host` if set to an empty string
Expand Down
8 changes: 6 additions & 2 deletions src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3020,8 +3020,12 @@ impl GooseAttack {
let (seconds, minutes, hours) = self
.metrics
.get_seconds_minutes_hours(&step[0].timestamp, &step[1].timestamp);
let started = step[0].timestamp.format("%y-%m-%d %H:%M:%S");
let stopped = step[1].timestamp.format("%y-%m-%d %H:%M:%S");
let started = Local
.timestamp(step[0].timestamp.timestamp(), 0)
.format("%y-%m-%d %H:%M:%S");
let stopped = Local
.timestamp(step[1].timestamp.timestamp(), 0)
.format("%y-%m-%d %H:%M:%S");
match &step[0].action {
// For maintaining just show the current number of users.
TestPlanStepAction::Maintaining => {
Expand Down

0 comments on commit 119e618

Please sign in to comment.