mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
parent
6326080143
commit
9b6ccb3eef
@ -301,8 +301,12 @@ fn data_pointers_to_primitives(data_pointers []&u8, types []int, field_types []F
|
||||
}
|
||||
.type_datetime, .type_timestamp {
|
||||
string_time := unsafe { cstring_to_vstring(&char(data)) }
|
||||
if string_time == '' {
|
||||
primitive = orm.Null{}
|
||||
} else {
|
||||
primitive = time.parse(string_time)!
|
||||
}
|
||||
}
|
||||
else {}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user