Files
espurna/code/html/src/ntp.mjs
Maxim Prokhorov 108ee655fe webui(build): pipeline instead of pipe
ref.
https://github.com/gulpjs/gulp/issues/2812
https://nodejs.org/en/learn/modules/how-to-use-streams#how-to-operate-with-streams
https://nodejs.org/en/learn/modules/how-to-use-streams#pipeline

while the gulp issue refers to this as a workaround, this is actually the
proper way to handle streams, merging streams and applying transformations

webserver code still spawns the pipe(line) unconditionally, though
2025-03-31 19:55:13 +03:00

15 lines
363 B
JavaScript

import { addEnumerables } from './settings.mjs';
export function init() {
/** @import { EnumerableNames } from './settings.mjs' */
/** @type {EnumerableNames} */
const timezones = {"UTC0": "No offset"};
for (let offset = -14; offset < 13; ++offset) {
timezones[`UTC${offset}`] = "";
}
addEnumerables("timezones", timezones);
}