Skip to content

Commit

Permalink
添加rss应用
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetree committed Jan 6, 2024
1 parent 9cc7539 commit 30ea6b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/rsshub/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from datetime import datetime
import pytz

import requests

Expand All @@ -9,7 +10,8 @@ def __init__(self, title='', link='', items=None):
self.title = title
self.link = link
self.items = items or []
self.update = datetime.now().strftime("%a, %d %b %Y %H:%M:%S") + ' +0800'
self.update = datetime.now().astimezone(pytz.timezone('UTC')).strftime(
"%a, %d %b %Y %H:%M:%S %Z")

def __getitem__(self, key):
return getattr(self, key)
Expand Down

0 comments on commit 30ea6b3

Please sign in to comment.