roundcubemail/program/include/rcmail.php
public function user_date()
    {
        // get user's timezone
        try {
            $tz   = new DateTimeZone($this->config->get('timezone'));
            $date = new DateTime('now', $tz);
        }
        catch (Exception $e) {
            $date = new DateTime();
        }

        return $date->format('r');
    }
public function user_date()
    {
        // get user's timezone
        try {
            $tz   = new DateTimeZone($this->config->get('timezone'));
            $date = new DateTime('now', $tz);
        }
        catch (Exception $e) {
            $date = new DateTime();
        }

        return $date->format('r');
    }
public function user_date ( ) { // get user's timezone try { $ tz = new DateTimeZone ( $ this -> config -> get ( 'timezone' ) ) ; $ date = new DateTime ( 'now' , $ tz ) ; } catch ( Exception $ e ) { $ date = new DateTime ( ) ; } return $ date -> format ( 'r' ) ; }
Returns RFC2822 formatted current date in user's timezone

@return string Date
Returns RFC2822 formatted current date in user s timezone