Index: trunk/phase3/includes/RevisionList.php |
— | — | @@ -184,19 +184,19 @@ |
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | | - * Get the date, formatted with $wgLang |
| 188 | + * Get the date, formatted in user's languae |
189 | 189 | */ |
190 | 190 | public function formatDate() { |
191 | | - global $wgLang; |
192 | | - return $wgLang->date( $this->getTimestamp() ); |
| 191 | + return $this->list->context->getLang()->userDate( $this->getTimestamp(), |
| 192 | + $this->list->context->getUser() ); |
193 | 193 | } |
194 | 194 | |
195 | 195 | /** |
196 | | - * Get the time, formatted with $wgLang |
| 196 | + * Get the time, formatted in user's languae |
197 | 197 | */ |
198 | 198 | public function formatTime() { |
199 | | - global $wgLang; |
200 | | - return $wgLang->time( $this->getTimestamp() ); |
| 199 | + return $this->list->context->getLang()->userTime( $this->getTimestamp(), |
| 200 | + $this->list->context->getUser() ); |
201 | 201 | } |
202 | 202 | |
203 | 203 | /** |