Skip to content

Commit

Permalink
Add default base time
Browse files Browse the repository at this point in the history
  • Loading branch information
ZdenekSrotyr committed Jul 31, 2024
1 parent 55fdd77 commit 0c7369e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-sync-actions/src/user_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def strtotime(self, string, base_time=None):
"""

command = f"php -r 'echo strtotime(\"{string}\", {base_time or int(time.time())});'"
command = f"php -r 'echo strtotime(\"{string}\", {base_time or 'time()'});'"
stdout, stderr = perform_shell_command(command, 'strotime function')

return int(stdout)
Expand Down

0 comments on commit 0c7369e

Please sign in to comment.