• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 7179658034
89%

Build:
DEFAULT BRANCH: main
Ran 12 Dec 2023 09:50AM UTC
Jobs 2
Files 537
Run time 59s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Dec 2023 09:48AM UTC coverage: 89.898% (-0.02%) from 89.913%
7179658034

push

github

web-flow
Refactor date label timezone adjustment (#925)

Whenever a timezone offset was provided, we would adjust the underlying date directly with `setUTCMilliseconds`.

`setUTCMilliseconds` adjusts the milliseconds in the Date object and expects a value between 0 and 999. However, in the context of timezones, this value is much greater than 999 which is also addressed by the same function by adjusting the other time components (seconds, minutes, etc.). See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds#description

This refactor makes the change clearer by adding/subtracting the amount of millisecond to the date itself. Previously, a condition around the zero value was required so that the number of milliseconds would not reset.

Additionally the function was changing the `Date` object directly which can affect other parts of the code which would use the same object. To solve this, `structuredClone` is used to to a deep clone of the Date object and change that copy instead.

1474 of 1779 branches covered (0.0%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

5476 of 5952 relevant lines covered (92.0%)

155.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-test:e2e:cov - 7179658034.1 12 Dec 2023 09:50AM UTC 898
55.0
GitHub Action Run
2 run-test:cov - 7179658034.2 12 Dec 2023 09:51AM UTC 1070
90.36
GitHub Action Run
Source Files on build 7179658034
  • Tree
  • List 537
  • Changed 49
  • Source Changed 1
  • Coverage Changed 131
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #7179658034
  • d4bd6687 on github
  • Prev Build on main (#7141272594)
  • Next Build on main (#7179724227)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc