From 691c971ebd873e2b28c42ec634e7bcbbc7145d5c Mon Sep 17 00:00:00 2001 From: CodeKevin Date: Tue, 26 Apr 2016 22:25:07 -0400 Subject: [PATCH] Closes #112 --- CTFd/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTFd/utils.py b/CTFd/utils.py index 9879aab7..663b9ef4 100644 --- a/CTFd/utils.py +++ b/CTFd/utils.py @@ -227,7 +227,7 @@ def can_view_challenges(): def unix_time(dt): - return int(time.mktime(dt.timetuple())) + return int((dt - datetime.datetime(1970, 1, 1)).total_seconds()) def unix_time_millis(dt):