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

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

Build:
DEFAULT BRANCH: main
Ran 12 Dec 2023 09:51AM UTC
Files 898
Run time 19s
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: 55.004% (+0.009%) from 54.995%
7179658034.1

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.

217 of 1723 branches covered (0.0%)

Branch coverage included in aggregate %.

6428 of 10358 relevant lines covered (62.06%)

4.66 hits per line

Source Files on job run-test:e2e:cov - 7179658034.1
  • Tree
  • List 898
  • Changed 1
  • Source Changed 1
  • Coverage Changed 112
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.2)
  • 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