fix: switch to datetime.now() instead of our get_datetime()
`get_datetime()` will query the DB to get the system timezone, not something we currently have. Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
4b2fde1d8f
commit
9940868063
1 changed files with 2 additions and 3 deletions
|
|
@ -71,13 +71,12 @@ def _new_site(
|
|||
|
||||
if not db_name:
|
||||
import hashlib
|
||||
|
||||
from frappe.utils.data import get_datetime
|
||||
from datetime import datetime
|
||||
|
||||
db_name = (
|
||||
"_"
|
||||
+ hashlib.sha1(
|
||||
(os.path.realpath(frappe.get_site_path()) + get_datetime().isoformat()).encode(),
|
||||
(os.path.realpath(frappe.get_site_path()) + datetime.now().isoformat()).encode(),
|
||||
usedforsecurity=False,
|
||||
).hexdigest()[:16]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue