From 6c4321de4d070061218f48be1d140075a8ca86ef Mon Sep 17 00:00:00 2001 From: Vladimir Oplustil Date: Tue, 2 Apr 2024 11:01:38 +0200 Subject: [PATCH] CTC-2400 - Remove offsets from scheduled publishing samples --- .../cm_api_v2_put_variant_publish_or_schedule.js | 2 +- js/management-api-v2/cm_api_v2_put_variant_unpublish_archive.js | 2 +- .../cm_api_v2_put_variant_publish_or_schedule.cs | 2 +- .../cm_api_v2_put_variant_unpublish_archive.cs | 2 +- .../cm_api_v2_put_variant_publish_or_schedule.curl | 2 +- .../cm_api_v2_put_variant_unpublish_archive.curl | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.js b/js/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.js index 143c6092..1bc4deec 100644 --- a/js/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.js +++ b/js/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.js @@ -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() diff --git a/js/management-api-v2/cm_api_v2_put_variant_unpublish_archive.js b/js/management-api-v2/cm_api_v2_put_variant_unpublish_archive.js index beb88a9b..b1fdfdd3 100644 --- a/js/management-api-v2/cm_api_v2_put_variant_unpublish_archive.js +++ b/js/management-api-v2/cm_api_v2_put_variant_unpublish_archive.js @@ -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() diff --git a/net/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.cs b/net/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.cs index f57a6285..bc0d8a21 100644 --- a/net/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.cs +++ b/net/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.cs @@ -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" }); diff --git a/net/management-api-v2/cm_api_v2_put_variant_unpublish_archive.cs b/net/management-api-v2/cm_api_v2_put_variant_unpublish_archive.cs index 8556fd0b..82964e22 100644 --- a/net/management-api-v2/cm_api_v2_put_variant_unpublish_archive.cs +++ b/net/management-api-v2/cm_api_v2_put_variant_unpublish_archive.cs @@ -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" }); diff --git a/rest/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.curl b/rest/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.curl index a7c1932d..1d91856e 100644 --- a/rest/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.curl +++ b/rest/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.curl @@ -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" }' diff --git a/rest/management-api-v2/cm_api_v2_put_variant_unpublish_archive.curl b/rest/management-api-v2/cm_api_v2_put_variant_unpublish_archive.curl index 89424647..337c2c89 100644 --- a/rest/management-api-v2/cm_api_v2_put_variant_unpublish_archive.curl +++ b/rest/management-api-v2/cm_api_v2_put_variant_unpublish_archive.curl @@ -5,6 +5,6 @@ curl --request PUT \ --header 'Authorization: Bearer ' \ --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" }'