Hi,

I have two update handlers:

||"|SetCancelled|":|"function(doc,req) {doc['cancelled']=true; 
doc['cancelledDate']=Date.now(); return [doc, 'ok'];}"|,
"|SetLastVisit|":|"function(doc,req) {doc['lastvisit']=Date.now(); return [doc, 
'ok'];}"


|||

How can it be one is writing the date as Unix date, and the other as Java Date??

|    "|cancelled|":|true|,
   "|cancelledDate|":|"2015-02-03T00:34:19.654Z"|,
   "|lastvisit|":|1423180381094||


I call them one after the other?

Thanks in advance!
------------------------------------------------------------------------
*With best regards,*
Kiril Stankov

Reply via email to