Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#123 Wrong time/datestamps

Rendering
closed
nobody
5
2014-07-29
2002-05-24
Anonymous
No

May I suggest changing the default time/dateformats on
line 174 in lib/Theme.php (latest release) into %x and %
X to use the time format from LC_TIME?

Discussion

  • J Do
    J Do
    2002-06-01

    Logged In: YES
    user_id=4367

    The date/time stamps do not appear in my installation, so I
    went ahead and fixed Theme.php, attached for your review.

     
  • J Do
    J Do
    2002-06-01

    Logged In: YES
    user_id=4367

    Oops... wasn't able to attach in the previous message. So
    here are the relevant code fragments:

    • Format a date.
      *
      • Any time zone offset specified in the users preferences is
      • taken into account by this method.
        *
      • @param $time_t integer Unix-style time.
        *
      • @return string The time.
        */
        function formatTime ($time_t) {
        //FIXME: make 24-hour mode configurable?
        global $request;
        $offset_time = $time_t + 3600 * $request->getPref
        ('timeOffset');
        $this->setTimeFormat("%H:%M:%S");
        return preg_replace('/^0/', ' ',
        strtolower(strftime($this->_timeFormat,
        $offset_time)));
        }
     
    • status: open --> closed
     
  • Closing very old bugs.