Results 1 to 5 of 5

Thread: time & date format don't stick

  1. #1
    justin4dti is offline Junior Member
    Join Date
    Dec 2007
    Posts
    3

    Default time & date format don't stick

    We're trying to set the time & date format away from military but the settings do not stick. I'm logged in as admin and going to System Locale Settings. I click Save, browse somewhere else, but return to the Settings page only to find military time still there. We've tried setting the Locale on a per-user basis but this doesn't help the company's main Calendar.

    This looks to be a permissions problem but I don't know how much and for what and there's no error messages as far as I can see .... I see the formatting logic in include/time.php that should be behind the Settings page but it's simply not sticking. I had thought this might be a bug in 4.2 so I upgraded them to 4.5. No go; another testing site running Sugar on the same server has the same problem. Could this be an oddity between HSphere and Sugar?

  2. #2
    sacramentojoe is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    447

    Default Re: time & date format don't stick

    Quote Originally Posted by justin4dti
    We're trying to set the time & date format away from military but the settings do not stick. I'm logged in as admin and going to System Locale Settings. I click Save, browse somewhere else, but return to the Settings page only to find military time still there. We've tried setting the Locale on a per-user basis but this doesn't help the company's main Calendar.

    This looks to be a permissions problem but I don't know how much and for what and there's no error messages as far as I can see .... I see the formatting logic in include/time.php that should be behind the Settings page but it's simply not sticking. I had thought this might be a bug in 4.2 so I upgraded them to 4.5. No go; another testing site running Sugar on the same server has the same problem. Could this be an oddity between HSphere and Sugar?
    I'm pretty sure that the system option is stored to the config_override.php in the docroot.
    Make sure that it's writeable.
    Also, each user has a time format option.

  3. #3
    justin4dti is offline Junior Member
    Join Date
    Dec 2007
    Posts
    3

    Default Re: time & date format don't stick

    That file is nowhere on this server. A few popped up from:

    # locate -i override.php

    The user is already got at least rw to the root directory (for their documents) so I added w to their group. Still doesn't stick. I also double checked the db_user used by Sugar; it has ALL privileges so I don't see a problem there.

    It would be nice if I could just edit the file and pacify the customer until it's really fixed. This absent-of-error-messages thing is silly.
    Last edited by justin4dti; 2007-12-12 at 07:09 PM.

  4. #4
    justin4dti is offline Junior Member
    Join Date
    Dec 2007
    Posts
    3

    Default Re: time & date format don't stick

    hacked. *evil grin* Forced the format in config.php. There was an array in there with all formatting syntax.

    chmod config.php to 777 doesn't fix this via the webpage, so I'm thinking there is indeed some permissions oddity when HSphere installs Sugar on the fly.

  5. #5
    goldfish is offline Sugar Community Member
    Join Date
    Jun 2005
    Posts
    13

    Default Re: time & date format don't stick

    Same issue... chmod config.php appears to make no difference to editing preferences changed via System Settings via Admin in the webpage. Editing the config.php file manually seems the only option. We looked at the source code of the system settings page and found the variables and discovered we could add them manually into config.php and it appeared to work. e.g. found <input type='hidden' name='use_real_names' value='false'> in source and so added 'use_real_names' => true, to the config.php file.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2009-07-13, 08:16 AM
  2. Wrong date format in $this?
    By leenwebb in forum Developer Help
    Replies: 5
    Last Post: 2007-02-06, 08:41 PM
  3. Date Format Anguish in 4.2.1b
    By Venners in forum Help
    Replies: 0
    Last Post: 2006-08-03, 08:24 PM
  4. Help with Date Format
    By cwking in forum General Discussion
    Replies: 0
    Last Post: 2006-05-13, 10:32 PM
  5. Problem with Date format
    By nicolas in forum Help
    Replies: 1
    Last Post: 2005-05-19, 02:16 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
  •