Postgres UTC date column parser. Version 1.0.3 parses Postgres-formatted date strings (with timezone 'Z') and returns ISO 8601 UTC strings. Released under MIT, targets Node >=0.10.0. Minimal footprint, zero dependencies. Counterpart to libraries like 'postgres-date' but enforces UTC output. No longer maintained; last update was 8+ years ago. Use for legacy projects only.
npm install postgres-date-utcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates parsing Postgres date strings with timezone 'Z', offset, and without timezone, all returning UTC.
Consider using 'postgres-date' with manual offset handling, or use the built-in Date parser with caution.
Ensure date strings include 'Z' or a numeric offset if you need explicit timezone handling.
If you need to preserve the offset, use a library that supports timezone offsets, e.g., 'postgres-date' or 'luxon'.
Install the correct package: npm install postgres-date-utc
npm install postgres-date-utc
Use require('postgres-date') instead of import.Pre-process the date string to convert the offset before parsing, or use a different library that handles offsets correctly.
No dependency data recorded yet.