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) »
  • Start date cannot be earlier than the current time.
Pages: [1]

Author Topic: Start date cannot be earlier than the current time.  (Read 995 times)

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Start date cannot be earlier than the current time.
September 21, 2011, 11:32:57 am
I am writing about the  "Start date cannot be earlier than the current time." error for CiviMail that appears to have been fixed in 3.1.4 (http://issues.civicrm.org/jira/browse/CRM-6048?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel) but we are running 3.4.5 and are having the same issue. Before dig through the code I wanted to see if anyone else has this issue or anything other know. 

Thanks,
Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Start date cannot be earlier than the current time.
September 23, 2011, 09:37:14 am

We changed date widgets in between those two releases, and i had to guess this bug got reintroduced due to that

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Start date cannot be earlier than the current time.
September 23, 2011, 10:39:55 am
I will give this to the developer on this project  (different than the develops working on other projects :)) Anything you would like to see in how we propose a solution for this?

Thanks,
Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Start date cannot be earlier than the current time.
October 05, 2011, 08:17:58 am
We changed the following code and appears to have fixed the problem.

Lines 217 through 221 on sites/all/modules/civicrm/CRM/Mailing/Form/Schedule.php

Code: [Select]
   if (CRM_Utils_Date::format( CRM_Utils_Date::processDate( $params['start_date'],
                                                                  $params['start_date_time'] ) ) < CRM_Utils_Date::format(date('YmdHi00')) ) {
             return array('start_date' =>
                          ts('Start date cannot be earlier than the current time.'));
         }

My developer was not sure there was a real problem with the other code so he did not want to open a ticket to change the code. Let me know if we should.

Thanks,
Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Start date cannot be earlier than the current time.
October 05, 2011, 08:54:09 am

steve:

can u please file an issue and attach the patch

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Start date cannot be earlier than the current time.
October 10, 2011, 02:19:00 pm
The patch for this is posted at http://issues.civicrm.org/jira/browse/CRM-9013

Thanks,
Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

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

This forum was archived on 2017-11-26.