mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
usertime() now compensates for DST.
This commit is contained in:
parent
538ce38a04
commit
2665e47afc
@ -790,6 +790,8 @@ function usergetdate($time, $timezone=99) {
|
||||
function usertime($date, $timezone=99) {
|
||||
|
||||
$timezone = get_user_timezone($timezone);
|
||||
|
||||
$date -= dst_offset_on($date);
|
||||
if (abs($timezone) > 13) {
|
||||
return $date;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user