diff --git a/core/src/candidate_details.rs b/core/src/candidate_details.rs
index 020abb0..027cf5f 100644
--- a/core/src/candidate_details.rs
+++ b/core/src/candidate_details.rs
@@ -1,8 +1,11 @@
+use chrono::{NaiveDate};
use entity::candidate;
use serde::{Serialize, Deserialize};
use crate::{error::ServiceError, crypto};
+pub const NAIVE_DATE_FMT: &str = "%Y-%m-%d";
+
pub struct EncryptedString(String);
impl EncryptedString {
@@ -20,7 +23,7 @@ impl EncryptedString {
}
}
- pub async fn to_string(self) -> String {
+ pub fn to_string(self) -> String {
self.0
}
}
@@ -42,11 +45,22 @@ impl TryFrom