Difference in Milestone TargetDate value and Custom field DateTime value when passed the same date

41 Views Asked by At

I am trying to save a dateTime value in my custom field in the Milestone Object Model and I see something is different between the TargetDate and my DateTime custom field: For example I am saving "2018-04-06T00:00:00.000Z"to TargetDate and my custom field but on Rally side, its saved in two different format. Why would that be the case? enter image description here

Thank you!

1

There are 1 best solutions below

1
Sarita On

I think I know why. All the dates are converted to UTC for built in fields whereas for custom fields it expects the date to be UTC. Converted my c_date to UTC and saved it and they matched :-)

Thanks!