Development
This commit is contained in:
parent
f5722f3c7b
commit
d60bf15ce4
15 changed files with 367 additions and 285 deletions
|
|
@ -9,6 +9,12 @@ def is_pro():
|
|||
return bool(os.environ.get('LICENSE', '').strip())
|
||||
|
||||
|
||||
def get_host_utc_offset():
|
||||
# Returns signed integer seconds east of UTC (e.g. -21600 for UTC-6, +19800 for UTC+5:30).
|
||||
import time
|
||||
return time.localtime().tm_gmtoff
|
||||
|
||||
|
||||
def get_credentials_key():
|
||||
"""Return a Fernet-compatible key derived from the CREDENTIALS_KEY environment variable,
|
||||
or None if not set. SHA-256 hashes the raw string to produce 32 bytes, which are then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue