线上环境关于时间查询的一个坑
引言
问题排查
$nextRunTimeBefore = date('Y-m-d H:i:s');
$coinProductEventIds = $coinProductEventMgr->findCoinProductEvents(array('nextRunTimeBefore' => $nextRunTimeBefore));isset($filter['nextRunTimeBefore']) && $qf->addCondition(new Condition('nextRunTime', Condition::$EQLT, $filter['nextRunTimeBefore']));SELECT * FROM CoinProductEvent WHERE nextRunTime <= '2018-07-05 12:00:00'Last updated