Results 1 to 2 of 2

Thread: Report Wizard changing dates

  1. #1
    DBerti is offline Junior Member
    Join Date
    Jan 2012
    Posts
    1

    Default Report Wizard changing dates

    I am using Sugar Professional Version 6.2.1 (Build 6405). I have a report that I built using the wizard and the report starts with a filter that uses a date range to filter data. Running the report for 12/1/11 - 12/31/11 gives me all of December's records PLUS a record for 1/1/12 - which is not part of the desired date range.

    If I look at the WHERE clause in the query I cas see that the wizard added one day to my filter "End Date".

    WHERE ((((pay_payments.date_entered>='2011-12-01 05:00:00' AND
    pay_payments.date_entered<='2012-01-01 04:59:59')
    ) AND (pay_payments.payment_type <> 'ERROR'
    )))
    AND pay_payments.deleted=0

    Can anybody help??

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: Report Wizard changing dates

    Quote Originally Posted by DBerti View Post
    I am using Sugar Professional Version 6.2.1 (Build 6405). I have a report that I built using the wizard and the report starts with a filter that uses a date range to filter data. Running the report for 12/1/11 - 12/31/11 gives me all of December's records PLUS a record for 1/1/12 - which is not part of the desired date range.

    If I look at the WHERE clause in the query I cas see that the wizard added one day to my filter "End Date".

    WHERE ((((pay_payments.date_entered>='2011-12-01 05:00:00' AND
    pay_payments.date_entered<='2012-01-01 04:59:59')
    ) AND (pay_payments.payment_type <> 'ERROR'
    )))
    AND pay_payments.deleted=0

    Can anybody help??
    I'm guessing this is because of timezone differences, as the report datetimes are relative to the current user's timezone. Sounds like a possible bug to me.
    John Mertic
    Sugar Community Manager

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2010-04-11, 01:10 PM
  2. Replies: 3
    Last Post: 2009-09-04, 09:39 AM
  3. Report all history between dates
    By williamh in forum Help
    Replies: 2
    Last Post: 2009-02-23, 04:29 AM
  4. Replies: 0
    Last Post: 2009-01-22, 05:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

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