Skip to main content
Best answer

How do I convert UK time (BST) to UTC in the Salesforce formula while ignoring the UI display?

  • Apr 30, 2024 9:47 AM UTC
  • 3 replies
  • 206 views

Hi, I’m trying to convert a Date/Time value from UK time (currently UTC +1 due to British Summer Time) to UTC.

I need this as I’ll be pushing to Salesforce, which takes any Date/Time as UTC then displays as local time, adding an hour which shouldn’t be there.

The easiest way to fix this would seem to be a date formatter, but i can’t get it to work as I expect:

If the date is in UK/London timezone and I convert it to UTC, it should (currently) remove 1 hour from the time value. This isn’t happening, can anyone point out what I’m doing wrong?

Anything obvious i’m missing here? Output comes out as identical to input

 

Best answer by ken.a

Hi there @SFPG,

Welcome to the Community! 🎉

I believe this is due to the selected format in the “From Format” field. Could you please try removing that by clicking on the field and select the “clear selection” button?

1cddcdcdfd3187a4fb40bb9586a18d1d.png
(view larger)

After that, please test the action step again.

I'll be keeping an eye out for your response!

View original
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • Answer
  • Apr 30, 2024 11:06 AM UTC

Hi there @SFPG,

Welcome to the Community! 🎉

I believe this is due to the selected format in the “From Format” field. Could you please try removing that by clicking on the field and select the “clear selection” button?

1cddcdcdfd3187a4fb40bb9586a18d1d.png
(view larger)

After that, please test the action step again.

I'll be keeping an eye out for your response!


  • Author
  • New
  • Apr 30, 2024 1:52 PM UTC

Perfect! Thanks for your quick assistance


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • May 1, 2024 6:40 AM UTC

You are most welcome @SFPG! I’m glad I was able to help!

If you have any other questions, please don’t hesitate to reach out to the Community. We’re always happy to help! 🤗