touy commented on issue #1389: View with wrong result, filtering by year month 
date
URL: https://github.com/apache/couchdb/issues/1389#issuecomment-397815173
 
 
   yes, doc.gpstime is : 2018-06-16T01:00:54+07:00
   from raw data before I insert to the database 
    deviceinfo.gpstime = moment.utc(util.format("20%s-%s-%s %s:%s:%s", _year, 
_month, _date, _hour, _minute, _second), 'YYYY-MM-DD HH:mm:ss');
   deviceinfo.gpstime = this.convertTZ(deviceinfo.gpstime);
    
   # my timezone conversion as below:
   convertTZ(fromTZ) {
           process.env.TZ = 'Asia/Vientiane'; 
           return moment.tz(fromTZ, "Asia/Vientiane").toDate();
   }
   value not from view : "gpstime": "2018-05-17T12:40:37+07:00",
   
   it's true that I sometime have a problem when I want to convert to timzone, 
sometime correct sometime is not correct ( reverse value)
   my laptop is +7 , 
   my server +00:00 UTC 
   so it's about timezone ?  I thought I convert all value to +7 timezone which 
it could avoid the issue, any recommend lease ? 

----------------------------------------------------------------
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