Fix time formatting in different node versions
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
#!/usr/bin/env node
|
||||
// @ts-check
|
||||
|
||||
// Temporal API stabilised in Node.js 26. Previous versions can use `--harmony-temporal`, but that's jank, so have a polyfill.
|
||||
if (!("Temporal" in globalThis)) {
|
||||
require("temporal-polyfill-lite/global")
|
||||
}
|
||||
// Ensure consistent output from the Intl and Temporal API across Node.js versions
|
||||
require("temporal-polyfill-lite/global")
|
||||
|
||||
const fs = require("fs")
|
||||
const sqlite = require("better-sqlite3")
|
||||
|
||||
Reference in New Issue
Block a user