fixed bug with datetime handling between api and bindings