nestjs / typeorm

TypeORM module for Nest framework (node.js) 🍇

Home Page:https://nestjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Different date value between typeorm and MySQL query?

golubvladimir opened this issue · comments

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

I have this problem. I have got datetime string. But when i used createQueryBuilder, it repeated.
typeorm/typeorm#7704

Expected behavior

I want to get date string.

Minimal reproduction of the problem with instructions

  const query = this.chCalendar.createQueryBuilder('cm')
      .orderBy("cm.time", "ASC")
      .where('cm.time >= :startTime AND cm.time <= :endTime', {
        startTime: '2021-05-31 00:00:00',
        endTime: '2021-05-31 23:59:59'
      });

Please, report this issue in the typeorm/typeorm repository.