Converting daterange according to timezone

Hey guys

i need a help to convert a daterange from 1 timezone to another. i ll explain below,

[“Apr 18, 2024 9:30 am”,“Apr 18, 2024 10:15 am”] this is my date range. i want to tell bubble that this daterange is according to australia/brisbane timezone and i want to convert it to some other timezone i.e america/cancun.

how will i be able to do that?
any help would be appreciated.

thanks

Go to settings - general; scroll to bottom to advanced settings and checkboxes for timezone override controls…need to be on version 22 or higher for this feature

Then when you are saving the values you can have in the date picker you use to save the values the timezone set to the static value of your choosing and when you display the value to a user in another timezone, you can use the users timezone to display it.

it helps when u inserting data…i want to convert list of dateranges from one timezone to another timezone when i am retrieving the data

Display the data in the timezone you want it to be shown in…Now, if you are talking about taking April 20 at 9PM in New York and converting that to April 20 at 9PM in LA, then you will need a plugin, which there are a few that can do that…but if you are simply talking about displaying April 20 at 9PM New York time to a user in LA who would see that as April 20 at 6PM, then simply show the date in the users timezone.

Luxon is your best bet…

I think there are some plugins available… but if not it’s pretty simple to convert a date to another timezone just using the Luxon JS library.

I’d set it up either a custom event or a RE with a Property, depending on how/where you need to use it.

This topic was automatically closed after 70 days. New replies are no longer allowed.