Add timezone support to date type field in Notion (#2082)

* Add timezone in date property on Notion

Signed-off-by: 5pecia1 <pdpxpd@gmail.com>

*  Improvements to #2036

*  Minor improvements

Co-authored-by: 5pecia1 <pdpxpd@gmail.com>
Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
Ricardo Espinoza
2021-08-13 14:57:18 -04:00
committed by GitHub
parent a6bdc0d0b2
commit a9987cd541
3 changed files with 70 additions and 3 deletions

View File

@@ -405,6 +405,23 @@ export const databasePageFields = [
description: `
An ISO 8601 formatted date, with optional time. Represents the end of a date range.`,
},
{
displayName: 'Timezone',
name: 'timezone',
type: 'options',
displayOptions: {
show: {
type: [
'date',
],
},
},
typeOptions: {
loadOptionsMethod: 'getTimezones',
},
default: 'default',
description: 'Time zone to use. By default n8n timezone is used.',
},
],
},
],
@@ -765,6 +782,23 @@ export const databasePageFields = [
description: `
An ISO 8601 formatted date, with optional time. Represents the end of a date range.`,
},
{
displayName: 'Timezone',
name: 'timezone',
type: 'options',
displayOptions: {
show: {
type: [
'date',
],
},
},
typeOptions: {
loadOptionsMethod: 'getTimezones',
},
default: 'default',
description: 'Time zone to use. By default n8n timezone is used.',
},
],
},
],