aboutsummaryrefslogtreecommitdiff
path: root/examples/tutorial02/polls
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-06-28 17:04:13 -0600
committerMelody Horn <melody@boringcactus.com>2021-06-28 17:04:13 -0600
commitb1ec80c918dd9e156c049a500983fb15147c6e14 (patch)
treecf0eb97074d7d2d4e60c2cfef96ac01adfc2a6d9 /examples/tutorial02/polls
parent2e3930b4c7c26e91c1341d7d04d33d91758f8009 (diff)
downloadtosin-b1ec80c918dd9e156c049a500983fb15147c6e14.tar.gz
tosin-b1ec80c918dd9e156c049a500983fb15147c6e14.zip
use chrono instead of time in tests
Diffstat (limited to 'examples/tutorial02/polls')
-rw-r--r--examples/tutorial02/polls/models.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tutorial02/polls/models.rs b/examples/tutorial02/polls/models.rs
index d62f219..c9de156 100644
--- a/examples/tutorial02/polls/models.rs
+++ b/examples/tutorial02/polls/models.rs
@@ -6,7 +6,7 @@ pub struct Question {
#[model(max_length=200)]
question_text: String,
/// date published
- pub_date: time::PrimitiveDateTime,
+ pub_date: chrono::NaiveDateTime,
}
#[derive(Model, PartialEq, Debug)]