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

panates / postgrejs / 37458825415
98%
master: 89%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 06 Oct 2026 11:49AM UTC
Jobs 1
Files 129
Run time 1min
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

06 Oct 2026 11:37AM UTC coverage: 98.329% (+0.02%) from 98.312%
37458825415

push

github

erayhanoglu
fix: a pre-2000 date was encoded a day late

`date` goes on the wire as a signed day count from 2000-01-01, so every
date before that one is negative - and `Math.trunc` rounds a negative
towards zero, which is towards the epoch. `1999-12-31T22:00Z` under
TZ=UTC went out as day 0, which is 2000-01-01. Silently: a row written,
no error, a day late.

    1999-12-31T22:00:00.000Z    pg 1999-12-31    text 1999-12-31    binary 2000-01-01
    1999-12-31T00:00:00.000Z    pg 1999-12-31    text 1999-12-31    binary 2000-01-01

`Math.floor` instead. The epsilon stays: it is what keeps an exact
midnight from landing a hair under its own day. Nine instants across
three zones (UTC, Europe/Istanbul, America/New_York) now agree between
`pg`, the text path and the binary one, where five, four and five of
them did not.

Older than it looks - the line dates to 58875b3, 2023 - and reachable
until now only by naming `date` or `_date` with BindParam. `11cfb77` put
a Date on that path by default once a statement has earned a name, which
is how CI found it: `43-date-param-reuse.spec.ts` compares what the two
paths store, its data has a 1999 instant in it, and the local clock here
is UTC+3 where the two agree. Under TZ=UTC they do not.

The new unit test takes `utcDates`, so it says the same thing wherever it
runs, and walks every midnight for 800 days either side of the epoch.

4147 of 4362 branches covered (95.07%)

Branch coverage included in aggregate %.

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

60 existing lines in 2 files now uncovered.

21867 of 22094 relevant lines covered (98.97%)

1894.4 hits per line

Coverage Regressions

Lines Coverage ∆ File
47
96.69
0.01% src/connection/intl-connection.ts
13
98.02
0.01% src/connection/connection.ts
Jobs
ID Job ID Ran Files Coverage
1 37458825415.1 06 Oct 2026 11:49AM UTC 129
98.33
GitHub Action Run
Source Files on build 37458825415
  • Tree
  • List 129
  • Changed 9
  • Source Changed 8
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #37458825415
  • 4f0b2510 on github
  • Prev Build on dev (#37349345929)
  • Next Build on dev (#37460023112)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc