mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-03 17:48:17 +00: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:
parent
1da43266e9
commit
0423945803
3 changed files with 11 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue