mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +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() {
|
||||
const timezones = rawTimeZones.reduce((acc, tz) => {
|
||||
acc[tz.name] = tz.name.replaceAll('_', ' ');
|
||||
const timezones = ['Etc/UTC', 'Etc/GMT', ...rawTimeZones.map((tz) => tz.name)];
|
||||
const data = timezones.sort().reduce((acc, name) => {
|
||||
acc[name] = name.replaceAll('_', ' ');
|
||||
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