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

safe-global / safe-client-gateway / 7179658034 / 2
89%
main: 89%

Build:
DEFAULT BRANCH: main
Ran 12 Dec 2023 09:51AM UTC
Files 1070
Run time 27s
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: 90.363% (-0.001%) from 90.364%
7179658034.2

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.

1508 of 1830 branches covered (0.0%)

Branch coverage included in aggregate %.

10888 of 11888 relevant lines covered (91.59%)

73.67 hits per line

Source Files on job run-test:cov - 7179658034.2
  • Tree
  • List 1070
  • Changed 49
  • Source Changed 1
  • Coverage Changed 130
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 7179658034
  • d4bd6687 on github
  • Prev Job for on main (#7141272594.1)
  • Next Job for on main (#7179724227.1)
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

© 2026 Coveralls, Inc