# Case id is created as per GMT timezone instead of CET.

**URL:** <https://forums.pega.com/t/case-id-is-created-as-per-gmt-timezone-instead-of-cet/7869>\
**Category:** General\
**Tags:** financial-services, citizen-developer, 8-8, case-management\
**Created:** [July 23, 2024, 9:24am UTC](https://forums.pega.com/t/case-id-is-created-as-per-gmt-timezone-instead-of-cet/7869 "2024-07-23T09:24:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShatakshiB17078376](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShatakshiB17078376](https://forums.pega.com/u/ShatakshiB17078376)\
**Post date:** [July 23, 2024, 9:24am UTC](https://forums.pega.com/t/case-id-is-created-as-per-gmt-timezone-instead-of-cet/7869/1 "2024-07-23T09:24:30Z")

</div>

As per the requirement Case id should be created accordingly current date time stamp. Pega is taking GMT as reference time zone and created a case with earlier date when current date time is in CET timezone.

Any idea if pega has any feature to overcome this?

---

<div class="post-metadata">

**Author:** ![SohamM95](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sohamm95/32/4726_2.png) [@SohamM95](https://forums.pega.com/u/SohamM95)\
**Post date:** [July 23, 2024, 12:16pm UTC](https://forums.pega.com/t/case-id-is-created-as-per-gmt-timezone-instead-of-cet/7869/2 "2024-07-23T12:16:20Z")

</div>

@ShatakshiB17078376

Please provide your current configuration. Usually there is an option to update timezone as per your requirement.

---

<div class="post-metadata">

**Author:** ![ShatakshiB17078376](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShatakshiB17078376](https://forums.pega.com/u/ShatakshiB17078376)\
**Post date:** [July 24, 2024, 6:19am UTC](https://forums.pega.com/t/case-id-is-created-as-per-gmt-timezone-instead-of-cet/7869/3 "2024-07-24T06:19:32Z")

</div>

@SohamM95

Thank you for your response.

According to the requirement our case id prefix should have current date of case creation time in CET timezone. In our current configuration case id is created through pega OOTB “AddWork” Activity. In this activity there is another pega OOTB activity “GenerateID” where work object id is constructed, here timezone is taken as GMT which is 2 hours behind than CET timezone. Consequently during 12 am to 2 am CET **(which is 10 pm to 12 am GMT of previous date)** whenever case creation activity is called it take currentdatetime() as GMT time (which is previous date) and case is created according to the date of that GMT timestamp. So we would like to know if pega has any solution to create case according to CET timezone.

Please refer the attachment for prefix code snippet.

Shatakshi

 ![Prefix Logic.PNG](https://pega1.discourse-cdn.com/pega/original/2X/f/f9c1d1faf4094b54a50a7717889819faeabb0cc7.png)

---

<div class="post-metadata">

**Author:** ![SohamM95](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/sohamm95/32/4726_2.png) [@SohamM95](https://forums.pega.com/u/SohamM95)\
**Post date:** [July 24, 2024, 10:54am UTC](https://forums.pega.com/t/case-id-is-created-as-per-gmt-timezone-instead-of-cet/7869/4 "2024-07-24T10:54:57Z")

</div>

@ShatakshiB17078376

You’re right Pega takes the currentdatetime in GMT. You might need to override the rule in your ruleset and pass the datetime in your required timezone.

---

<div class="post-metadata">

**Author:** ![ShatakshiB17078376](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShatakshiB17078376](https://forums.pega.com/u/ShatakshiB17078376)\
**Post date:** [July 24, 2024, 2:37pm UTC](https://forums.pega.com/t/case-id-is-created-as-per-gmt-timezone-instead-of-cet/7869/5 "2024-07-24T14:37:28Z")

</div>

@SohamM95

Alright, thank you for the response.

Shatakshi
