couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiril Stankov <ki...@open-net.biz>
Subject Strange issue with dates
Date Fri, 06 Feb 2015 00:07:25 GMT
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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message