wohali commented on issue #1389: View with wrong result, filtering by year 
month date
URL: https://github.com/apache/couchdb/issues/1389#issuecomment-397853725
 
 
   2018-06-16T01:00:54+07:00 would be 2018-06-15 in UTC. Your view code will 
convert everything to UTC:
   
   ```
   var d = new Date("2018-06-16T01:00:54+07:00");
   print(d.getFullYear() + " " + (d.getMonth()+1) + " " + d.getDate())
   "2018 6 15"
   ```
   
   Is this what you expect?
   
   Full docs on the Date class [are 
here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to