Dotclear

Changeset 910:05b7bec1f3da for inc/admin


Ignore:
Timestamp:
10/26/12 10:09:28 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Take into account the timezone of user for message's timestamp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r907 r910  
    258258     public static function message($msg,$timestamp=true,$div=false,$echo=true) 
    259259     { 
     260          global $core; 
     261           
    260262          $res = ''; 
    261263          if ($msg != '') { 
    262264               $res = ($div ? '<div class="message">' : '').'<p'.($div ? '' : ' class="message"').'>'. 
    263                     ($timestamp ? dt::str(__('%H:%M:%S:')).' ' : '').$msg. 
     265                    ($timestamp ? dt::str(__('%H:%M:%S:'),null,$core->auth->getInfo('user_tz')).' ' : '').$msg. 
    264266                    '</p>'.($div ? '</div>' : ''); 
    265267               if ($echo) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map