diff options
author | w-e-w <40751091+w-e-w@users.noreply.github.com> | 2022-10-22 13:31:02 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-24 07:28:42 +0000 |
commit | 00952fb4a8b86b75402cc8276e00f3daadf1f459 (patch) | |
tree | 52f41a83bb10ab82e34a8364505af1dea2ecbd3a | |
parent | 480d8e764611d7779bf8e0245640a6b84af626f9 (diff) | |
download | stable-diffusion-webui-gfx803-00952fb4a8b86b75402cc8276e00f3daadf1f459.tar.gz stable-diffusion-webui-gfx803-00952fb4a8b86b75402cc8276e00f3daadf1f459.tar.bz2 stable-diffusion-webui-gfx803-00952fb4a8b86b75402cc8276e00f3daadf1f459.zip |
add sanitize_filename() to datetime
-rw-r--r-- | modules/images.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/images.py b/modules/images.py index 55d8ab5e..898b065b 100644 --- a/modules/images.py +++ b/modules/images.py @@ -400,6 +400,7 @@ def replace_datetime(input_str: str): # if format error then use default_time_format
formatted_time = time_zone_time.strftime(default_time_format)
+ formatted_time = sanitize_filename_part(formatted_time, replace_spaces=False)
input_str = input_str[:match.start()] + formatted_time + input_str[match.end():]
return input_str
|