Previously: date value was obtained from survey.launch_on or survey.close_on
It only contained the date info with no associated timezone.
This caused problems when the client assumes value is in UTC (although it may already be in the local timezone), and then converts it from UTC to the local timezone
Update: Expect value to be obtained from survey.launch_on_datetime or survey.close_on_datetime.
It will then have timezone information associated with it, which can be correctly passed to the client.
For example:
Before: Using launch_on
Database launch_at: 2019-02-05 18:00:00 (in UTC)
get_date_value(:launch_on):
survey.launch_at = Tue, 05 Feb 2019 10:00:00 PST -08:00 (ActiveSupport::TimeWithZone)
For: https://jira.surveymonkey.com/browse/SOLN-2042
For example: Before: Using launch_on Database launch_at: 2019-02-05 18:00:00 (in UTC) get_date_value(:launch_on):
After: Using launch_on_datetime get_date_value(:launch_on_datetime):