Skip to content

Commit

Permalink
Merge pull request #552 from matthuisman/date_fix
Browse files Browse the repository at this point in the history
Fix <date> parsing only year to firstAired
  • Loading branch information
phunkyfish authored Sep 10, 2021
2 parents 7692a85 + 5a6dd79 commit 36b01c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pvr.iptvsimple/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.iptvsimple"
version="7.6.10"
version="7.6.11"
name="PVR IPTV Simple Client"
provider-name="nightik and Ross Nicholson">
<requires>@ADDON_DEPENDS@
Expand All @@ -21,6 +21,9 @@
<icon>icon.png</icon>
</assets>
<news>
v7.6.11
- Fixed: EPG date entry only parsing year

v7.6.10
- Fixed: Fix episode number when there is no season
- Fixed: Return server error if channels or groups could not be loaded due to missing file so they are not cleared in Kodi
Expand Down
3 changes: 3 additions & 0 deletions pvr.iptvsimple/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v7.6.11
- Fixed: EPG date entry only parsing year

v7.6.10
- Fixed: Fix episode number when there is no season
- Fixed: Return server error if channels or groups could not be loaded due to missing file so they are not cleared in Kodi
Expand Down
2 changes: 1 addition & 1 deletion src/iptvsimple/data/EpgEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ std::string ParseAsW3CDateString(const std::string& strDate)

std::sscanf(strDate.c_str(), "%04d%02d%02d", &year, &mon, &mday);

return StringUtils::Format("%04d%-02d%-02d", year, mon, mday);
return StringUtils::Format("%04d-%02d-%02d", year, mon, mday);
}

std::string ParseAsW3CDateString(time_t time)
Expand Down

0 comments on commit 36b01c2

Please sign in to comment.