Skip to content

Commit 5c8994f

Browse files
committed
Merge pull request #309 from mvantellingen/fix-timestamps
Fix snapshot.aware_tstamp by converting from utc timestamp
2 parents 153a875 + 9de360f commit 5c8994f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djcelery/snapshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
def aware_tstamp(secs):
3535
"""Event timestamps uses the local timezone."""
36-
return maybe_make_aware(datetime.fromtimestamp(secs))
36+
return maybe_make_aware(datetime.utcfromtimestamp(secs))
3737

3838

3939
class Camera(Polaroid):

0 commit comments

Comments
 (0)