UebiMiau Time bug?

Discussion in 'General' started by BlueStream, Dec 22, 2006.

  1. BlueStream

    BlueStream New Member

    Code:
    :: [F]usion[S]tream :: -- G...  	test at 11.37am  	22/12/06 03:37
    Time stamp is wrong here..
    Time stamp is correct in squirrelmail..
     
  2. mphayesuk

    mphayesuk Member

    Try This:

    Ok If you are using a 64bit system this is what you will need to do in order to make the time and date work on the we interface to Ubeimiau.

    Go to this file:

    home/admispconfig/ispconfig/web/webmail/smarty/smarty.addons.php

    and find the function smarty_make_timestamp($string)

    if(empty($string)) {
    $string = "now";
    }else if(is_numeric($string)) {
    return (int)$string;
    }$time = strtotime($string);
    if(is_numeric($time) && $time != -1
    return $time;

    You need to add in the code in red above into the function and that should make the webmail time and date look right.
     
  3. BlueStream

    BlueStream New Member

    I'm on a 32 bit machine
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Try it anyway. Maybe it works for you as well. Make sure that the output of
    Code:
    date
    on the shell is correct.
     
  5. BlueStream

    BlueStream New Member

    I did try it and the file does not exist.

    So I noted that I'm on a 32bit machine.

    #date does returns correct information
     
  6. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /home/admispconfig/ispconfig/web/webmail/smarty
    ?
     
  7. BlueStream

    BlueStream New Member

    discovered that file begins with a capital S. thanks for that tip. I usually do the same but for some reason didn't this time.


    In any case, it does not fix the problem. Old mail time is not updated and new mail still is shown with a wrong time.
     
  8. Hans

    Hans Moderator ISPConfig Developer

    Give this a try

    Within the file /home/admispconfig/ispconfig/web/webmail/inc/config.php there is a line like this, where you can set your local timezone:


    ########################################################################
    # The TIME ZONE of server, format (+|-)HHMM (H=hours, M=minutes), eg. +0100
    ########################################################################
    $server_time_zone = "+0200"; //CST

    Have also a look here:
    http://blog.edula.com/?p=14
     
    Last edited: Dec 24, 2006
  9. BlueStream

    BlueStream New Member

    brilliant.. that works..!

    Cheers. =D
     

Share This Page