Join Free
+ Reply to Thread
Results 1 to 1 of 1

Thread: Date Error?

  1. #1
    Senior Member
    Join Date
    Apr 2011
    Location
    127.0.0.1
    Posts
    544
    Blog Entries
    2

    Date Error?

    Does this happen at midnight? I'm in the Central Time Zone, and it's 12:06AM 12-23-2011 right now.

    PHP Code:
        [errors] => Array
            (
                [
    0] => Array
                    (
                        [
    code] => request_invalid
                        
    [msg] => 20111223 is a date in the future
                    
    )

                [
    1] => Array
                    (
                        [
    code] => request_invalid
                        
    [msg] => commissionDateRange must be in Ymd,Ymd format
                    
    )

                [
    2] => Array
                    (
                        [
    code] => commissionDateRange_required
                        
    [msg] => commissionDateRange is required
                    
    )

            ) 
    I guess the best thing to do is:

    PHP Code:
    $FIFTEENDAYS date('Ymd'time() - 86400 15) ;
    // $TODAY = date('Ymd') ;
    $TODAY date('Ymd'time() - 86400 1) ;
    $_TimeRange $FIFTEENDAYS ',' $TODAY 
    Real time information causes problems; setting the date range to 24 hours ago makes it all work again.
    Last edited by NiTe; 12-23-2011 at 12:11 AM.

    "The greatest limitation in coding is imagination."
    -- Amazon Browse Node Database: .
    -- Create a Free Publisher Account

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
coupons | coupons and deals