Commit 4eeef198 authored by Phil Hughes's avatar Phil Hughes Committed by Robert Speicher

Fixed date issue with timezones

parent 49628664
...@@ -26,7 +26,9 @@ class @DueDateSelect ...@@ -26,7 +26,9 @@ class @DueDateSelect
addDueDate = -> addDueDate = ->
# Create the post date # Create the post date
value = $("input[name='#{fieldName}']").val() value = $("input[name='#{fieldName}']").val()
mediumDate = $.datepicker.formatDate('M d, yy', new Date(value)) valueSplit = value.split '-'
date = new Date(valueSplit[0], parseInt(valueSplit[1]) - 1, valueSplit[2])
mediumDate = $.datepicker.formatDate 'M d, yy', date
data = {} data = {}
data[abilityName] = {} data[abilityName] = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment