MDL-32234 Library: usergetdate return different values when timezone is set
[moodle.git] / lib / tests / moodlelib_test.php
index e00c015..8552f6a 100644 (file)
@@ -1020,10 +1020,9 @@ class moodlelib_testcase extends advanced_testcase {
         $this->assertEquals($wday,3);
         $this->assertEquals($mon,12);
         $this->assertEquals($year,2009);
-        $this->assertEquals($yday,357);
+        $this->assertEquals($yday,356);
         $this->assertEquals($weekday, 'Wednesday');
         $this->assertEquals($month, 'December');
-
         $arr = usergetdate($ts);//gets the timezone from the $USER object
         $arr = array_values($arr);
 
@@ -1035,10 +1034,9 @@ class moodlelib_testcase extends advanced_testcase {
         $this->assertEquals($wday,3);
         $this->assertEquals($mon,12);
         $this->assertEquals($year,2009);
-        $this->assertEquals($yday,357);
+        $this->assertEquals($yday,356);
         $this->assertEquals($weekday, 'Wednesday');
         $this->assertEquals($month, 'December');
-
         //set the timezone back to what it was
         $USER->timezone = $userstimezone;