Skip to content

Commit

Permalink
AS16.1 - make Utils::parseDate static
Browse files Browse the repository at this point in the history
  • Loading branch information
matidau committed Nov 7, 2024
1 parent df119ed commit b143956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ public static function FormatDateUtc($ts,$format) {
* @access private
* @return long
*/
function static parseDate($ts) {
static function parseDate($ts) {
if(preg_match("/(\d{4})[^0-9]*(\d{2})[^0-9]*(\d{2})(T(\d{2})[^0-9]*(\d{2})[^0-9]*(\d{2})(.\d+)?Z){0,1}$/", $ts, $matches)) {
if ($matches[1] >= 2038){
$matches[1] = 2038;
Expand Down

0 comments on commit b143956

Please sign in to comment.