Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default PayPal IPN - 1292 Incorrect datetime value

    After upgrading to 1.3.8 I noticed that the following error message is displayed after placing an order and paying using the PayPal IPN module.

    1292 Incorrect datetime value: '09:03:49 03 2007' for column 'payment_date' at row 1
    Has anyone else experienced this problem?

  2. #2
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Just fixed this issue.

    After turning off the MySQL 'strict mode' the PayPal pament module is now working as it should.

  3. #3
    Join Date
    Jan 2008
    Posts
    5
    Plugin Contributions
    0

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Hi,

    My first post. We had the same issue, the problem is we use hosting on windows
    server, where the MySQL is shared, so our host refused to do any changes as
    suggested.

    The solution was to dig around the code, i am not PHP programmer, but i have
    tryed my best. To fix, open:

    /includes/modules/payment/paypal.php

    goto after_process(), then find the part where the paypal data is filled into the
    array:
    Code:
    'payment_date' => trim(preg_replace('/[^0-9-:]/', ' ', $this->pdtData['payment_date'])),
    replace with this:
    Code:
    'payment_date' => $this->datetime_to_sql_format($this->pdtData['payment_date']), 

    Well, i hope this will help somebody.

    we are on MySQL 5.0.x
    and ZC 1.3.8

    Regards, Chris

  4. #4

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Thanks for the posts. I had the same error and the fixes provided here worked for me.

    Thanks again.

  5. #5
    Join Date
    Mar 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    Ok, I have just recently discovered zencart and I am absolutely blown away by the community here. I have found an answer to every potentially catastrophic issue making the whole implementation and modding process fantastic!

    Yet again, I had this exact problem and your step by step explanation coupled with user confirmation is exceptional.

    To all out there, you are awesome. Keep up the great work.

  6. #6
    Join Date
    Jul 2008
    Location
    Australia
    Posts
    28
    Plugin Contributions
    0

    Default Re: PayPal IPN - 1292 Incorrect datetime value

    I made the change above, but get a blank page now.

    Is there any chance someone could post the php file for this alteration.

    I am using the latest Version 1.3.8

 

 

Similar Threads

  1. Replies: 4
    Last Post: 14 Jan 2009, 11:45 AM
  2. PayPal IPN Order Total Incorrect v1.3.7.1 with addons
    By colin270 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Aug 2008, 04:43 PM
  3. PayPal error: 1292 Incorrect datetime value: '00:13:47 09 2008' for column
    By directprint in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 11 Jul 2008, 08:47 AM
  4. PayPal IPN: Incorrect billing info passed over
    By Ked in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 6 Nov 2007, 04:49 PM
  5. I'm using PayPal Express and PayPal IPN, should I remove PayPal IPN?
    By tj1 in forum PayPal Express Checkout support
    Replies: 3
    Last Post: 3 Nov 2007, 05:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg