X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FXml.php;h=ac0539d16ca9efb7238ac4f26f188b84eead372f;hb=8aaed96eb48f5b8b78ec8fe4287d7295a0039871;hp=d5501fea318fb234f8b7e9254d86f84a5d11b80e;hpb=18b6725044850a39e1ee1df41781644875a652c0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Xml.php b/includes/Xml.php index d5501fea31..ac0539d16c 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -195,8 +195,9 @@ class Xml { if ( $year ) { $encYear = intval( $year ); } elseif ( $encMonth ) { - $thisMonth = intval( gmdate( 'n' ) ); - $thisYear = intval( gmdate( 'Y' ) ); + $timestamp = MWTimestamp::getInstance(); + $thisMonth = intval( $timestamp->format( 'n' ) ); + $thisYear = intval( $timestamp->format( 'Y' ) ); if ( intval( $encMonth ) > $thisMonth ) { $thisYear--; }