Adding your own date and time formats to the datetime stamps

sugarcrmdevelopers —  October 16, 2012 — 3 Comments

I saw a question in the forums recently that asked for how to add seconds as a display option for DateTime stamps throughout the app. As you can see, there’s no time display option for that in the settings…

As it turns out, both this and the date format options are completely customizable thru the app. Simply add new formats like this in the config_override.php file and they will be automatically included in the list.

3 responses to Adding your own date and time formats to the datetime stamps

  1. 

    Hello there! I could have sworn I’ve been to this site before but after
    checking through some of the post I realized it’s new to me.

    Nonetheless, I’m definitely delighted I found it and
    I’ll be bookmarking and checking back frequently!

  2. 

    Step1:
    ——
    – Edit config_override.php
    – Add this line
    // format is key = format, value = display value in dropdown
    $sugar_config[‘time_formats’][‘H:i:s’] = ’23:00:00′;
    – Save

    Step2:
    – Go to Profile > Advanced tab:
    – In Locale Settings sub-panel, change the Time format by: 23:00:00
    – Save

  3. 

    Hi El Hadji Dem
    I followed your steps
    but the issue its not Displaying SECONDS in Editable State.. it just show ’00’

    Have you get it working?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s