Skip to content

Commit 757264c

Browse files
w-e-wAUTOMATIC1111
authored andcommitted
default_time_format if format is blank
1 parent 146856f commit 757264c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def prompt_words(self):
343343
def datetime(self, *args):
344344
time_datetime = datetime.datetime.now()
345345

346-
time_format = args[0] if len(args) > 0 else self.default_time_format
346+
time_format = args[0] if len(args) > 0 and args[0] != "" else self.default_time_format
347347
try:
348348
time_zone = pytz.timezone(args[1]) if len(args) > 1 else None
349349
except pytz.exceptions.UnknownTimeZoneError as _:

0 commit comments

Comments
 (0)