Skip to content

Commit

Permalink
Fix #20
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Posselt committed Aug 23, 2016
1 parent 4ff179d commit 360a9f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
news (9.0.2)
* **Bugfix**: Do not return millisecond lastModified timestamps in API, #20

news (9.0.1)
* **Enhancement**: Drop PHP 64bit requirement due to helpful suggestions

Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>news</id>
<name>News</name>
<description>An RSS/Atom feed reader</description>
<version>9.0.1</version>
<version>9.0.2</version>
<licence>agpl</licence>
<author>Bernhard Posselt</author>
<author>Alessandro Cosentino</author>
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function toAPI() {
'feedId' => $this->getFeedId(),
'unread' => $this->isUnread(),
'starred' => $this->isStarred(),
'lastModified' => $this->getLastModified(),
'lastModified' => (int) substr($this->getLastModified(), 0, -6),
'rtl' => $this->getRtl(),
'fingerprint' => $this->getFingerprint(),
'contentHash' => $this->getContentHash()
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Db/ItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function testToAPI() {
$item->setStatus(0);
$item->setUnread();
$item->setStarred();
$item->setLastModified(321);
$item->setLastModified('1111111111234567');
$item->setFingerprint('fingerprint');
$item->setContentHash('contentHash');

Expand All @@ -87,7 +87,7 @@ public function testToAPI() {
'feedId' => 1,
'unread' => true,
'starred' => true,
'lastModified' => 321,
'lastModified' => 1111111111,
'rtl' => true,
'fingerprint' => 'fingerprint',
'contentHash' => 'contentHash'
Expand Down

0 comments on commit 360a9f3

Please sign in to comment.