CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail: "Start date cannot be earlier than the current time" for later today
Pages: [1]

Author Topic: CiviMail: "Start date cannot be earlier than the current time" for later today  (Read 2520 times)

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
CiviMail: "Start date cannot be earlier than the current time" for later today
March 30, 2010, 08:30:37 am
Hi,

When scheduling a mailing for later today, I get the error "Start date cannot be earlier than the current time". CRM_Mailing_Form_Schedule::formRule checks the start_date field:
Code: [Select]
        if (CRM_Utils_Date::format( CRM_Utils_Date::processDate( $params['start_date'] ) ) < date('YmdHi00') ) {
            return array('start_date' =>
                ts('Start date cannot be earlier than the current time.'));
        }

However this field only contains the date, not the time, hence the observed behaviour. Confirmed with debug statement:

Code: [Select]
  CRM_Mailing_Form_Schedule::formRule: $params['start_date'] '03/30/2010', date('YmdHi00'): '20100330202600'

Dave J

ctarascio

  • I post frequently
  • ***
  • Posts: 334
  • Karma: 30
    • American Friends Service Committee
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: CiviMail: "Start date cannot be earlier than the current time" for later today
March 30, 2010, 08:40:25 am
Hi,
We are experiencing the same issue and I was able to replicate this on the 3.1 demo.

Thanks,
Cynthia
« Last Edit: March 30, 2010, 09:03:45 am by ctarascio »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviMail: "Start date cannot be earlier than the current time" for later today
April 01, 2010, 02:24:49 am
Please file an issue for this and we’ll fix it for CiviCRM 3.1 (and/or 3.2).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

ctarascio

  • I post frequently
  • ***
  • Posts: 334
  • Karma: 30
    • American Friends Service Committee
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: CiviMail: "Start date cannot be earlier than the current time" for later today
April 01, 2010, 05:53:52 am
Hi Piotr,
I filed an issue for this: http://issues.civicrm.org/jira/browse/CRM-6048.

Thanks so much for the future fix,
Cynthia

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: CiviMail: "Start date cannot be earlier than the current time" for later today
April 15, 2010, 02:16:46 am
any status on this?

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: CiviMail: "Start date cannot be earlier than the current time" for later today
April 15, 2010, 04:57:06 am
Hi Alfred,

http://issues.civicrm.org/jira/browse/CRM-6048 shows fix version 3.1.4, which was released yesterday. Haven't tested this yet.

Dave J

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail: "Start date cannot be earlier than the current time" for later today

This forum was archived on 2017-11-26.