before-apply-edits

594
1
04-25-2017 07:39 AM
JamesGormley
New Contributor II

I am trying to edit a modified date field in an javascript application. The idea is that when the user is done making their edits that the On the 'before-apply-edits' event is called where the application could insert today's date.  when i insert the date and refresh the layer the date is changed to 1 day before.  am i missing something?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

James,

  This is normally a timezone issue when dates are entered without a time and thus are given a time of midnight and then once stored and returned the timezone offset is applied and the result is the date being a day off. You should make sure to add your date with a time portion as well.