Use UTC tz for determining TO status
This commit is contained in:
10
atst/utils/clock.py
Normal file
10
atst/utils/clock.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import pendulum
|
||||
|
||||
class Clock(object):
|
||||
@classmethod
|
||||
def today(cls, tz="UTC"):
|
||||
return pendulum.today(tz=tz).date()
|
||||
|
||||
@classmethod
|
||||
def now(cls, tz="UTC"):
|
||||
return pendulum.now(tz=tz)
|
Reference in New Issue
Block a user