mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
refactor(common_utils): move serde implementations and date-time utils to common_utils crate (#40)
This commit is contained in:
@ -16,15 +16,6 @@ pub(crate) use self::{
|
||||
};
|
||||
use crate::consts;
|
||||
|
||||
pub mod date_time {
|
||||
use time::{OffsetDateTime, PrimitiveDateTime};
|
||||
|
||||
pub fn now() -> PrimitiveDateTime {
|
||||
let utc_date_time = OffsetDateTime::now_utc();
|
||||
PrimitiveDateTime::new(utc_date_time.date(), utc_date_time.time())
|
||||
}
|
||||
}
|
||||
|
||||
pub mod error_parser {
|
||||
use std::fmt::Display;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user