Упрощение даты
This commit is contained in:
parent
8adb27e8d1
commit
d66ca147e4
1 changed files with 2 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ class SubnetService:
|
|||
start_time = time.time()
|
||||
devices = []
|
||||
now = datetime.now().astimezone()
|
||||
formatted_now = now.strftime("%d %B %Y, %H:%M")
|
||||
formatted_now = now.strftime("%d-%m-%Y, %H:%M")
|
||||
try:
|
||||
saved_devices = self.storage.load_devices()
|
||||
|
||||
|
|
@ -267,7 +267,7 @@ class SubnetService:
|
|||
|
||||
def _get_local_device(self, subnet: str) -> Optional[Device]:
|
||||
now = datetime.now().astimezone()
|
||||
formatted_now = now.strftime("%d %B %Y, %H:%M")
|
||||
formatted_now = now.strftime("%d-%m-%Y, %H:%M")
|
||||
try:
|
||||
subnet_network = ipaddress.ip_network(subnet, strict=False)
|
||||
interfaces = netifaces.interfaces()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue