mirror of
https://github.com/nkanaev/yarr.git
synced 2026-03-24 04:47:42 +00:00
Account for client timezone on Fever API
This commit is contained in:
@@ -367,7 +367,7 @@ func (s *Server) feverMarkHandler(c *router.Context) {
|
||||
markFilter := storage.MarkFilter{FeedID: &id}
|
||||
x, _ := strconv.ParseInt(c.Req.Form.Get("before"), 10, 64)
|
||||
if x > 0 {
|
||||
before := time.Unix(x, 0)
|
||||
before := time.Unix(x, 0).UTC()
|
||||
markFilter.Before = &before
|
||||
}
|
||||
s.db.MarkItemsRead(markFilter)
|
||||
@@ -378,7 +378,7 @@ func (s *Server) feverMarkHandler(c *router.Context) {
|
||||
markFilter := storage.MarkFilter{FolderID: &id}
|
||||
x, _ := strconv.ParseInt(c.Req.Form.Get("before"), 10, 64)
|
||||
if x > 0 {
|
||||
before := time.Unix(x, 0)
|
||||
before := time.Unix(x, 0).UTC()
|
||||
markFilter.Before = &before
|
||||
}
|
||||
s.db.MarkItemsRead(markFilter)
|
||||
|
||||
Reference in New Issue
Block a user