Results 1 to 3 of 3

Thread: Not getting right date in display

  1. #1
    akkimca's Avatar
    akkimca is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    270

    Exclamation Not getting right date in display

    Hi all,

    i m using sugarcrm 5.1. i created one custom field which has code data type. in that i write this code:
    $date=get_stage_date($bean->id);
    if($date!="-") {
    $TimeDate = new TimeDate();
    $date=$TimeDate->to_display_date($date);
    }
    print $date;

    my problem is I m not getting write date. it show me one day less means if i enter 2008-12-29 than it show me 2008-12-28..

    so anyone help me where i m wrong

    thanx in advance

  2. #2
    Superman's Avatar
    Superman is online now Sugar Community Member
    Join Date
    Oct 2005
    Location
    Kazakhstan
    Posts
    852

    Default Re: Not getting right date in display

    Problem is in incorrect using of use_offset parameter.
    Farkhad Rakhimzhanov
    E-mail: farkhad@gmail.com
    Skype: rakikama

    SuperTimesheet and Invoicing — timesheet tool with invoicing for SugarCRM.
    Book time against Cases, Project Tasks and Projects.
    Create invoice regarding booked time, print it in PDF or HTML,
    customize template as you like.

  3. #3
    rush1711's Avatar
    rush1711 is offline Member
    Join Date
    Sep 2009
    Location
    Pune
    Posts
    18

    Default Re: Not getting right date in display

    Quote Originally Posted by Superman View Post
    Problem is in incorrect using of use_offset parameter.
    have you know why this parameter is used ? by default use_offset is true if i made it false my problem getting solved but my question is if i made it false, will i get any other problem in future?
    Last edited by rush1711; 2011-02-01 at 06:07 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Date field does not display the popup to select date
    By Siruss in forum Installation and Upgrade Help
    Replies: 5
    Last Post: 2008-06-06, 10:00 PM
  2. date display color error in task view
    By allenl in forum Help
    Replies: 1
    Last Post: 2007-12-21, 03:27 PM
  3. Display Contact and Date Modified in History Panel?
    By pricefister in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2007-05-22, 11:23 PM
  4. Display date created in view lists
    By averum in forum Feature Requests
    Replies: 0
    Last Post: 2005-01-26, 03:16 PM
  5. Date Display on Notes
    By gorpus in forum Help
    Replies: 1
    Last Post: 2004-08-12, 04:35 AM

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
  •