Skip to content
Snippets Groups Projects

Redesign header

Merged Krzysztof Mochocki requested to merge kmochocki/issue-21 into develop
@@ -95,8 +95,7 @@ class DynamicPropertiesClock(Horizontal, CliveWidget):
def __get_last_update(self, _: bool) -> str:
gdpo = self.app.world.app_state.get_dynamic_global_properties()
last_update = humanize.naturaltime(datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc) - gdpo.time)
return last_update
return humanize.naturaltime(datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc) - gdpo.time)
def __trigger_last_update(self) -> None:
self.last_update_trigger = not self.last_update_trigger
Loading