Fix drop timestamp "ends" using "starts" translation

This commit is contained in:
DevilXD committed 2023-08-07 21:04:10 +02:00
1 parent ab9a8312ce
commit 137f540d62
1 file changed
+4 -4
+4 -4
View File
@@ -1422,14 +1422,14 @@ class InventoryOverview:
) )
if datetime.now(timezone.utc) < drop.starts_at > drop.campaign.starts_at: if datetime.now(timezone.utc) < drop.starts_at > drop.campaign.starts_at:
# this drop can only be earned later than the campaign start # this drop can only be earned later than the campaign start
alt_text = "Starts at: {}".format( alt_text = _("gui", "inventory", "starts").format(
drop.starts_at.astimezone().replace(microsecond=0, tzinfo=None) time=drop.starts_at.astimezone().replace(microsecond=0, tzinfo=None)
) )
reverse = True reverse = True
elif drop.ends_at < drop.campaign.ends_at: elif drop.ends_at < drop.campaign.ends_at:
# this drop becomes unavailable earlier than the campaign ends # this drop becomes unavailable earlier than the campaign ends
alt_text = "Starts at: {}".format( alt_text = _("gui", "inventory", "ends").format(
drop.ends_at.astimezone().replace(microsecond=0, tzinfo=None) time=drop.ends_at.astimezone().replace(microsecond=0, tzinfo=None)
) )
reverse = True reverse = True
label.config( label.config(