|
|
@@ -69,7 +69,7 @@ pub fn convert(from: &str, to: &str, time: &str, day: Option<String>, date: Opti |
|
|
|
|
|
|
|
let dt: Date<Tz> = match date { |
|
|
|
Some(dt) => fromtz.from_local_date(&dt).unwrap(), |
|
|
|
None => Utc::today().with_timezone(&fromtz), |
|
|
|
None => Utc::now().with_timezone(&fromtz).date(), |
|
|
|
}; |
|
|
|
|
|
|
|
let dt = match day { |
|
|
|