Skip to content

Commit

Permalink
fix: make datetimes ui timezone aware
Browse files Browse the repository at this point in the history
  • Loading branch information
SethFalco committed Jul 4, 2023
1 parent 716bae8 commit ac80dd5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/invidious/objects/videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ def subplot(self):
subplot = [localizedString(30053)]

if self.premiereTimestamp:
subplot.append(localizedString(30063) + str(self.premiereTimestamp))
subplot.append(localizedString(30063) + self.premiereTimestamp.strftime("%x %X"))
else:
if hasattr(self, "viewCount"):
subplot.append(localizedString(30054))
if hasattr(self, "published"):
subplot.append(localizedString(30055))
subplot.append(localizedString(30055) + self.published.strftime("%x %X"))

return "\n".join(subplot)

Expand Down
4 changes: 2 additions & 2 deletions resources/language/resource.language.de_de/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ msgid "Views: {0.viewCount}"
msgstr "Aufrufe: {0.viewCount}"

msgctxt "#30055"
msgid "Published: {0.published}"
msgstr "Veröffentlicht: {0.published}"
msgid "Published: "
msgstr "Veröffentlicht: "

#msgctxt "#30056"
#msgid "{0.title}\n\nChannel: {0.author}"
Expand Down
2 changes: 1 addition & 1 deletion resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ msgid "Views: {0.viewCount}"
msgstr ""

msgctxt "#30055"
msgid "Published: {0.published}"
msgid "Published: "
msgstr ""

#msgctxt "#30056"
Expand Down
4 changes: 2 additions & 2 deletions resources/language/resource.language.es_es/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ msgid "Views: {0.viewCount}"
msgstr "Reproducciones: {0.viewCount}"

msgctxt "#30055"
msgid "Published: {0.published}"
msgstr "Publicado: {0.published}"
msgid "Published: "
msgstr "Publicado: "

#msgctxt "#30056"
#msgid "{0.title}\n\nChannel: {0.author}"
Expand Down
4 changes: 2 additions & 2 deletions resources/language/resource.language.fr_fr/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ msgid "Views: {0.viewCount}"
msgstr "Vues: {0.viewCount}"

msgctxt "#30055"
msgid "Published: {0.published}"
msgstr "Publiée le: {0.published}"
msgid "Published: "
msgstr "Publiée le: "

#msgctxt "#30056"
#msgid "{0.title}\n\nChannel: {0.author}"
Expand Down

0 comments on commit ac80dd5

Please sign in to comment.