Web Service Post string parameter is being passed with wrong time
I have a Web Service Method that is Posting to the tickets endpoint to create a ticket in another ticketing application.
In the header, Content-type is being set to application/json.
There are parameters set to hold the values from two datetime custom attributes from the original ticket. If these values are passed into UTC Datetime parameter to pass to the new ticket's custom attribute, or if they're passed from the original ticket in to string parms to be added to the Description in the new ticket, the time being passed is off. Obviously the UTC will be five hours off (we're in Central) but when TDX passess through a datetime parameter into a datetime custom attribute, 12n becomes 1 o'clock.
Any suggestions about how to make a datetime value of noon in an original ticket be noon in the ticket being created with the call?
Answer (1)
Hello Scott,
I know it does pull the date/time value in UTC, which *is* accurate. Also, in the past we have recommended to use UTC or make another call to format the date the way it is needed, then take that call's result to input to your PATCH call or whichever it is.
How does one make a call to pull in a datetime and then change that datetime to a given time zone - without iPaaS? - Scott Williamson Fri 7/14/23 11:43 AM
Thanks for the info! - Scott Williamson Fri 7/14/23 12:07 PM