Spaces:
Running
Running
File size: 289 Bytes
478dec6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import pytz
from sqlalchemy import func
class Config:
@property
def tzinfo(self):
tzinfo = pytz.timezone('Asia/Jakarta')
return tzinfo
@property
def JAKARTA_NOW(self):
return func.timezone("Asia/Jakarta", func.now())
master_config = Config() |