Skip to content

Commit

Permalink
Update to the .php
Browse files Browse the repository at this point in the history
no idea if this works - from #848
  • Loading branch information
robotastic committed Dec 14, 2024
1 parent 813539d commit e5ce0f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/audioplayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
// no leading period
$FileType = 'm4a';

date_default_timezone_set('America/New_York');
$date = new DateTimeImmutable();


/**
* This allows you to remove the leading portion of a directory name, so you can use
* absolute paths in the config file, and not have to match that structure in your web server
Expand Down Expand Up @@ -123,7 +127,7 @@
'size_kb' => round($file->getSize() / 1024),
'talkgroup' => ($TGS[$system->shortName][$TGID]['tag']) ?? $TGID,
'unix_date' => $TIME,
'date' => strftime('%F %T', $TIME),
'date' => date("Y-m-d\TH:i:s\Z",$TIME),
'frequency' => ($FREQ / 1000000),
'systemname' => $system->shortName,
];
Expand Down

0 comments on commit e5ce0f5

Please sign in to comment.