datetime handling for gleam

commits