Set the Time Zone for Your Products and Promotions
The Catalog Product Relationship (CPR) determines the effective date and time. When you create a CPR record, you can set the EffectiveDateTime
and EndDateTime
fields in the CPR layout. The DateTime information you provide is based on your local time zone, as specified in your user profile. The system automatically converts your local DateTime
to its GMT equivalent and stores it. This ensures that the DateTime
information is consistent across different time zones.
This feature is available only to the classic Digital Commerce (DC) customers, and isn't extended to Standard DC or CPQ customers yet.
To enable and use the time-zone-aware date feature in CPR objects, follow these steps:
- Set the Configuration:
- From Vlocity CMT Administration, click CPQ Configuration Setup.
- Update the ShouldConsiderUserLocaleforCPR Setting Value to
true
and save your changes.
- Edit the Catalog Product Relationship Layout.
- From Setup in Classic DC user interface, click the Catalogs tab
- Select a catalog.
- From the Catalog Product Relationships section, and click Edit on a CPR record.
- From the quick access menu, select Edit Layout.
- Add the Effective Date Time and End Date Time fields to the layout.
- Remove Old Fields: Remove the Effective Date and End Date fields from the CPR layout.
- Input Local Dates and Times: When creating or updating CPR records, use the Effective Date Time and End Date Time fields to input date and time in the user's local time zone.
If this feature is disabled, users cannot update EffectiveDateTime__c
and EndDateTime__c
. If enabled, users cannot update EffectiveDate__c
and EndDate__c
, as they are derived from EffectiveDateTime__c
and EndDateTime__c
.