mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 01:24:20 +01:00
restrict chrono to no-dfault-features, update julian_day_converter
chrono has default features that are incompatible with some targets, such as non-js WebAssembly. Removing the unused defaults allows limbo to compile to these targets
This commit is contained in:
@@ -1536,11 +1536,13 @@ mod tests {
|
||||
#[allow(deprecated)]
|
||||
#[test]
|
||||
fn test_apply_modifier_julianday() {
|
||||
use julian_day_converter::*;
|
||||
|
||||
let dt = create_datetime(2000, 1, 1, 12, 0, 0);
|
||||
let julian_day = julian_day_converter::datetime_to_julian_day(&dt.to_string()).unwrap();
|
||||
let julian_day = &dt.to_jd();
|
||||
let mut dt_result = NaiveDateTime::default();
|
||||
if let Ok(result) = julian_day_converter::julian_day_to_datetime(julian_day) {
|
||||
dt_result = result;
|
||||
if let Some(ndt) = JulianDay::from_jd(*julian_day) {
|
||||
dt_result = ndt;
|
||||
}
|
||||
assert_eq!(dt_result, dt);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user