Skip to content

Commit

Permalink
Merge branch 'hotfix-0.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
blockmurder committed Jun 4, 2019
2 parents 038ec91 + 32b756d commit c7996d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "blockmurder/winlinkapi",
"description": "Adds a cron job which gets the latest poition reports of your callsing from WinLink.org and adds them to your database",
"type": "bolt-extension",
"version": "0.1.1",
"version": "0.1.2",
"keywords": [
"winlink",
"positions",
Expand Down
3 changes: 2 additions & 1 deletion src/WinLinkAPIExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public function getWinLinkDataFunction()
{
/* get the date of the entry */
$date = date_create();
date_timestamp_set($date, (intval(preg_replace('/\D/', '', $positionReport['Timestamp']))/1000));
preg_match('#\((.*?)\)#', $positionReport['Timestamp'], $timestamp);
date_timestamp_set($date, (intval($timestamp[1]/1000)));

if($oldPosition == NULL || $date > $oldPosition->get('date'))
{
Expand Down

0 comments on commit c7996d9

Please sign in to comment.