Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Account Time Zone

67 views
Skip to first unread message

Asoka Wardhana

unread,
Mar 18, 2025, 8:23:51 AMMar 18
to CGRateS
Hi all,

I'm exploring the possibility of retrieving a RatingPlan based on the Timezone associated with an account. Specifically, I’m considering configuring Timezones via Attributes at the account level.

Could you confirm if this approach is feasible? If so, could you provide guidance on how to implement it?

Regards,

Asoka.

Armir Veliaj

unread,
Mar 25, 2025, 10:32:45 AMMar 25
to CGRateS
Hi Asoka

The default  timezone can be configured in the general section of config, and it can be overwritten (e.g. when processing reader templates),
but for your case can you please provide us any examples so we can better understand what you are trying to achieve?

Thanks,
Armir

Asoka Wardhana

unread,
Mar 25, 2025, 2:08:48 PMMar 25
to CGRateS
Hi Armir,

How CGRateS handles timezone-specific RatingPlan selection and CDR time recording. Here's our scenario:

In Indonesia, we have three timezones:

  1. Asia/Jakarta (UTC+07:00) - Default in general configuration

  2. Asia/Makassar (UTC+08:00)

  3. Asia/Jayapura (UTC+09:00)

We have users assigned to each timezone:

  • 1001 (Asia/Jakarta)

  • 2001 (Asia/Makassar)

When a call originates from 2001 (Asia/Makassar), we need to know :

  1. How CGRateS selects the Timing RatingPlan based on the user's timezone

  2. How to ensure SetupTime and AnswerTime in CDRs reflect the correct timezone (UTC+08:00 in this case)

Could you please explain the configuration needed to achieve this timezone-aware behavior? Specifically:

  • Where should timezone information be stored (Account attributes, etc.)

  • How the RatingPlan selection process considers timezones

  • How CDR time fields are populated with timezone-correct values


Many thanks for your help Armir.

Regards,

Asoka

Armir Veliaj

unread,
Mar 26, 2025, 11:01:11 AMMar 26
to CGRateS
Hi Asoka,


The CDRs are already coming with the timezone set, but you can change the timezone in RatingProfiles, as shown in the sample CSV file here: https://github.com/cgrates/cgrates/blob/master/data/tariffplans/oldtutorial/RatingProfiles.csv#L2.
In the ActivationTime field, you can change the timezone individually for each customer, and the system will apply the timezone conversions automatically.

Hope this helps!

Thanks,
Armir

Asoka Wardhana

unread,
Apr 1, 2025, 9:19:30 PMApr 1
to CGRateS
Hi Armir,

Thanks for your suggestion will inform you the result later.

Regards,

Asoka
Reply all
Reply to author
Forward
0 new messages