- $siteDate = $wgContLang->date( $ts, false, false );
- $siteTime = $wgContLang->time( $ts, false, false );
+ $contLang = MediaWikiServices::getInstance()->getContentLanguage();
+ $siteDate = $contLang->date( $ts, false, false );
+ $siteTime = $contLang->time( $ts, false, false );