Results 1 to 7 of 7

Thread: Date Entered and Date Modifies Fields Doesnt Work

  1. #1
    cagatay is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Turkiye
    Posts
    72

    Default Date Entered and Date Modifies Fields Doesnt Work

    Hi All

    In my custom module there are default fields (date entered & date modified)

    If you dont change anything and then submit it is working

    If you change just DATE ENTERED it is giving "My SQL error 1292 "

    If you dont touch DATE ENTERED field and change DATE MODIFIED you can submit easily but it always shows TODAY

    I checked LOCAL SETTINGs and SYSTEM SETTINGs

    I dont understand what is going on ? Any idea?

    <using Sugar CE 5.0>

    Regards
    Last edited by cagatay; 2008-04-18 at 10:53 AM.

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Date Entered and Date Modifies Fields Doesnt Work

    Hi, cagatay.

    It is so weird.
    How these fields were created into custom table?
    Can you explain that better?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Date Entered and Date Modifies Fields Doesnt Work

    What do you mean by changing the fields? Those fields are not designed to be edited by the user, but rather to be only updated by the system upon saving a record.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  4. #4
    cagatay is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Turkiye
    Posts
    72

    Default Re: Date Entered and Date Modifies Fields Doesnt Work

    Dear Andopes
    These fields come to custom module by DEFAULT

    Dear Clint
    By "change" I mean changing the date (Date of Enter and date of Modify)

    Regards

  5. #5
    cagatay is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Turkiye
    Posts
    72

    Default Re: Date Entered and Date Modifies Fields Doesnt Work

    I am still figting with DATE ENTERED

    Although I am choosing TODAY date, it always displays 01/01/1970

    What a stupid thing...I dont understand

    Regards

  6. #6
    anna is offline Sugar Community Member
    Join Date
    Jan 2007
    Location
    USA
    Posts
    81

    Default Re: Date Entered and Date Modifies Fields Doesnt Work

    Are you trying to manually set the DATE ENTERED field? You might just be having issues with the formatting of the date so it cannot be parsed into DB format, thus ends up defaulting to 01/01/1970. Setting dates can be a bit tricky because you need to account for a user's selected date format.
    What exactly are you trying to do? Can you post a code snippet that relates to the problem?

  7. #7
    cagatay is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Turkiye
    Posts
    72

    Default Re: Date Entered and Date Modifies Fields Doesnt Work

    Nothing set by manually

    Date Antered and Date Modiefied fields come defaultly

    I had clonned these fields (default fields) right now and problem fixed

    Regards

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom Date Fields Not Saving Correctly
    By 1kether1 in forum Help
    Replies: 6
    Last Post: 2008-06-02, 11:29 AM
  2. FIX: custom date fields not saving
    By Scott_Savage in forum Developer Help
    Replies: 1
    Last Post: 2008-02-06, 07:30 PM
  3. Replies: 1
    Last Post: 2006-07-28, 02:18 PM
  4. Replies: 0
    Last Post: 2006-06-22, 01:30 PM
  5. Bug in custom fields for date formatting...
    By ShortWave in forum Help
    Replies: 0
    Last Post: 2005-07-19, 05:32 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
  •