MDL-50179 behat: Use %d for windows compatibility

This commit is contained in:
Rajesh Taneja
2015-06-09 09:34:10 +08:00
parent 17abbfba1f
commit f0b48270d3
+3 -1
View File
@@ -106,7 +106,9 @@ class behat_calendar extends behat_base {
* @return Given[]
*/
public function i_hover_over_today_in_the_calendar() {
$todaysday = trim(strftime('%e'));
// For window's compatibility, using %d and not %e.
$todaysday = trim(strftime('%d'));
$todaysday = ltrim($todaysday, '0');
return $this->i_hover_over_day_of_this_month_in_calendar($todaysday);
}
}