aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/tutorial02/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/tutorial02/main.rs b/examples/tutorial02/main.rs
index 2abac0c..7c244dd 100644
--- a/examples/tutorial02/main.rs
+++ b/examples/tutorial02/main.rs
@@ -41,7 +41,10 @@ mod test {
assert!(all_questions.is_empty());
// make a new one
- let mut q = Question::new("What's new?".to_string(), time::PrimitiveDateTime::now());
+ let mut q = Question::new(
+ "What's new?".to_string(),
+ chrono::Local::now().naive_local(),
+ );
// save it
q.save_mut();
// it's got an id now!