Skip to content

Commit

Permalink
Removed unneeded get_user_timezone_offset() call; usertime() does it …
Browse files Browse the repository at this point in the history
…anyway.
  • Loading branch information
defacer committed Apr 9, 2005
1 parent 02a5309 commit 13e5588
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/moodlelib.php
Expand Up @@ -602,8 +602,6 @@ function get_user_preferences($name=NULL, $default=NULL, $userid=NULL) {
*/
function make_timestamp($year, $month=1, $day=1, $hour=0, $minute=0, $second=0, $timezone=99, $applydst=true) {

$timezone = get_user_timezone_offset($timezone);

if (abs($timezone) > 13) {
$time = mktime((int)$hour,(int)$minute,(int)$second,(int)$month,(int)$day,(int)$year, 0);
} else {
Expand Down

0 comments on commit 13e5588

Please sign in to comment.