Results 1 to 2 of 2

Thread: Cannot find where a default is set for a date

  1. #1
    piccirm is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    83

    Default Cannot find where a default is set for a date

    Hi

    I'm trying to understand why if a create a new task without set any date_due then a date as 1/1/2000 is saved
    In the vardefs and editview I do not see any default value set
    Where else 'd I look for ?

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Cannot find where a default is set for a date

    It's not sugar it's salt....

    mySQL tries to interpret a given date value 0 as:
    00-00-00 00:00:00

    Day 00 must be wrong, so use 1.
    Month 00 must be wrong so use 1.
    Year 00 must be 2000 as in 1900 there were no databases.
    And 00:00:00 is midnight.

    So you will get 2000-01-01 00:00:00...
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. date default value showing 1970
    By sidh211 in forum Developer Help
    Replies: 8
    Last Post: 2009-09-04, 02:22 PM
  2. Replies: 1
    Last Post: 2009-07-13, 08:16 AM
  3. Custom date default to none
    By sidh211 in forum Developer Help
    Replies: 7
    Last Post: 2008-06-02, 11:37 AM
  4. Custom Date Field Default Value
    By CMTG in forum Help
    Replies: 4
    Last Post: 2008-06-02, 05:30 AM
  5. set default value of date field
    By aheuermann in forum Help
    Replies: 0
    Last Post: 2006-07-25, 06:22 PM

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
  •