mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Bring back the missing GMT and UTC timezone for workflow settings (#13999)
This commit is contained in:
committed by
GitHub
parent
3a5cc4ae95
commit
bda068880e
@@ -65,9 +65,10 @@ function bundleOpenApiSpecs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function generateTimezoneData() {
|
function generateTimezoneData() {
|
||||||
const timezones = rawTimeZones.reduce((acc, tz) => {
|
const timezones = ['Etc/UTC', 'Etc/GMT', ...rawTimeZones.map((tz) => tz.name)];
|
||||||
acc[tz.name] = tz.name.replaceAll('_', ' ');
|
const data = timezones.sort().reduce((acc, name) => {
|
||||||
|
acc[name] = name.replaceAll('_', ' ');
|
||||||
return acc;
|
return acc;
|
||||||
}, {});
|
}, {});
|
||||||
writeFileSync(path.resolve(ROOT_DIR, 'dist/timezones.json'), JSON.stringify({ data: timezones }));
|
writeFileSync(path.resolve(ROOT_DIR, 'dist/timezones.json'), JSON.stringify({ data }));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user