Changeset 737510c in iPeer


Ignore:
Timestamp:
2013-06-19T15:41:09-07:00 (5 years ago)
Author:
mwytang <michael.tang@…>
Branches:
3.1.x, dev, hotfix, master
Children:
0cd388a, 506d856
Parents:
374227c
Message:

fixed email schedule's getEmailsToSend function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/models/email_schedule.php

    r374227c r737510c  
    2626        // mysql, just in case the DB has different timezone setting with php
    2727        return $this->find('all', array(
    28             'conditions' => array(date("Y-m-d H:i:s").' >= EmailSchedule.date', 'EmailSchedule.sent' => '0'),
     28            'conditions' => array('EmailSchedule.date <=' => date('Y-m-d H:i:s'), 'EmailSchedule.sent' => '0'),
    2929        ));
    3030    }
Note: See TracChangeset for help on using the changeset viewer.