update: set toValue as public
This commit is contained in:
parent
1888c5e07a
commit
655bed4c8f
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ pub const Context = struct {
|
|||
self.arena.deinit();
|
||||
}
|
||||
|
||||
fn toValue(self: *Context, value: anytype) !Value {
|
||||
pub fn toValue(self: *Context, value: anytype) !Value {
|
||||
const T = @TypeOf(value);
|
||||
if (T == time.Time) {
|
||||
return Value{ .string = try time.formatDateTime(self.allocator(), value, "Y-m-d H:i:s") };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue