Another attempt at fixing huddle message deduplication.

(imported from commit 3b0a06d7bee7eacbe4eeb8ff6095bdcd5ce17e95)
This commit is contained in:
Tim Abbott 2012-09-24 16:34:29 -04:00
parent 0be4ce05a6
commit a3a027f8c7
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ def forge_zephyr(request):
# Huddle message, need to make sure we're not syncing it twice!
if Zephyr.objects.filter(sender__user__email=request.POST['sender'],
content=request.POST['new_zephyr'],
pub_date=float(request.POST['time'])):
pub_date=datetime.datetime.utcfromtimestamp(float(request.POST['time'])).replace(tzinfo=utc)):
# This is a duplicate huddle message, deduplicate!
return json_success()