Hey Guys,
I’m having a hard time dealing with dates in HubL.
I have this custom object with a date property, one of the objects has this value

The thing is that when I query this object in one of the modules I’m creating, the date changes for some reason.

as you can see HS UI says the start is 03/14/2024 but hubL says the start is 3/15/24.
Any ideas on how to solve this or what could be the issue?
Hi, @ACarrillo7
I hope you are doing great! I’d like to invite some of our community members to the conversation — hey @MBERARD @Jnix284 @Stephanie-OG, do you have any recent experience or troubleshooting tips you can share with @ACarrillo7?
Thank you very much for taking a look! — Jaycee
Happy to help @Jaycee_Lewis, this is certainly a strange one, but I think I’ve seen something similar happen once before.
@ACarrillo7 are you using local dev tools or working directly in the HubSpot UI?
And is your time zone the same as that of the HubSpot account?
I did some dev work for a German account and there was a discrepenacy with the dates I could pull (from the U.S.) compared to those in the account due to the time zone difference.
It might help to set the “formatting” parameter in the crm_objects() function to false, so it will give you a unix timestamp instead of a string.
Yes, solved it by doing so. The date is still “wrong” but it worked after formatting the date again using JS. Stil weird ;(