Skip to main content
Solved

SET_LOCALE and SET_TIMEZONE functions returns an incorrect hour

  • July 13, 2023
  • 2 replies
  • 21 views

Quero_Emigrar
Forum|alt.badge.img+7

I just found out that both SET_LOCALE and SET_TIMEZONE functions returns an incorrect hour, at least for Europe/Lisbon and en-gb as per the below examples:
SET_TIMEZONE(NOW(), 'Europe/Lisbon')
SET_LOCALE(NOW(), 'en-gb')

Both these functions as returning 1 hour less than the correct one.

Best answer by Quero_Emigrar

Hi @Quero_Emigrar, check the format options on the formula fields and ensure the "Use the same timezone for all collaborators" is toggled off.


Thanks CJ

In fact it was the opposite: I needed to toggle it on and select the timezone Europe/Lisbon for the time to be correct. I had totally forgotten this option.

Thanks again CJ 🙂

2 replies

CJSmith
Forum|alt.badge.img+12
  • Participating Frequently
  • 42 replies
  • July 13, 2023

Hi @Quero_Emigrar, check the format options on the formula fields and ensure the "Use the same timezone for all collaborators" is toggled off.


Quero_Emigrar
Forum|alt.badge.img+7
  • Author
  • Inspiring
  • 8 replies
  • Answer
  • July 13, 2023

Hi @Quero_Emigrar, check the format options on the formula fields and ensure the "Use the same timezone for all collaborators" is toggled off.


Thanks CJ

In fact it was the opposite: I needed to toggle it on and select the timezone Europe/Lisbon for the time to be correct. I had totally forgotten this option.

Thanks again CJ 🙂