Has anyone worked with DateTime fields in a KirbyBase database?? I can insert
and update values using DateTime data type but when I read the value back
with a select it returns as and Array not a DateTime object, how can I
convert it back to DateTime??
Here is an example
result = tbl.select(:last_visited) {|r| r.url == "http://www.a-link.org" }
=> [#<struct #<Class:0xb7a3b8d8> last_visited=#<DateTime: -1/2,0,2299161>>]
result.last_visited => [#<DateTime: -1/2,0,2299161>]
result.last_visited.class => Array
regards
Horacio