Skip to content

Commit

Permalink
CTC-2400 - Remove offsets from scheduled publishing samples
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirO-kontent committed Apr 2, 2024
1 parent 990f543 commit 6c4321d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const response = await client.publishLanguageVariant()
// .byLanguageCodename('es-mx')
// To schedule publish date, use .withData({scheduled_to: 'datetime-to-publish-at'})
.withData({
scheduled_to: '2038-01-19T04:14:08+01:00',
scheduled_to: '2038-01-19T04:14:08',
display_timezone: "Australia/Sydney"
})
// To publish now, use .withoutData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const response = await client.unpublishLanguageVariant()
.byLanguageCodename('es-mx')
// To schedule unpublish date, use .withData({scheduled_to: 'datetime-to-unpublish-at'})
.withData({
scheduled_to: '2038-01-19T04:14:08+01:00',
scheduled_to: '2038-01-19T04:14:08',
display_timezone: "Australia/Sydney"
})
// To unpublish now, use .withoutData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
// Scheduled publish
await client.SchedulePublishingOfLanguageVariantAsync(identifier, new ScheduleModel
{
ScheduleTo = DateTime.Parse("2038-01-19T04:14:08+01:00"),
ScheduleTo = DateTime.Parse("2038-01-19T04:14:08"),
DisplayTimeZone = "Australia/Sydney"
});
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
// Scheduled unpublish
await client.ScheduleUnpublishingOfLanguageVariantAsync(identifier, new ScheduleModel
{
ScheduleTo = DateTime.Parse("2038-01-19T04:14:08+01:00"),
ScheduleTo = DateTime.Parse("2038-01-19T04:14:08"),
DisplayTimeZone = "Australia/Sydney"
});
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ curl --request PUT \
--header 'Content-type: application/json' \
--data '
{
"scheduled_to": "2038-01-19T04:14:08+01:00",
"scheduled_to": "2038-01-19T04:14:08",
"display_timezone": "Europe/Prague"
}'
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ curl --request PUT \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-type: application/json' \
--data '{
"scheduled_to": "2038-01-19T04:14:08+01:00",
"scheduled_to": "2038-01-19T04:14:08",
"display_timezone": "Europe/Prague"
}'

0 comments on commit 6c4321d

Please sign in to comment.