Skip to content

Commit

Permalink
use django timezone.now to stop a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
defrex committed Jul 18, 2013
1 parent 3323a79 commit 562df3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encrypted_fields/tests.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import re
from datetime import datetime

from django.db import models, connection
from django.test import TestCase
from django.utils import timezone

from .fields import (
EncryptedCharField,
Expand Down Expand Up @@ -66,7 +66,7 @@ def test_text_field_encrypted(self):
self.assertEqual(fresh_model.text, plaintext)

def test_datetime_field_encrypted(self):
plaintext = datetime.now()
plaintext = timezone.now()

model = TestModel()
model.datetime = plaintext
Expand Down

0 comments on commit 562df3e

Please sign in to comment.