mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Update helpers.now function
This commit is contained in:
parent
9baecb0a41
commit
f582f781f3
3 changed files with 13 additions and 12 deletions
|
@ -213,9 +213,10 @@ def today():
|
|||
return yyyymmdd
|
||||
|
||||
|
||||
def now():
|
||||
def now(no_sep=False):
|
||||
now = datetime.datetime.now()
|
||||
|
||||
if no_sep:
|
||||
return now.strftime("%Y%m%d%H%M%S")
|
||||
return now.strftime("%Y-%m-%d %H:%M:%S")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue