wrong date on rails 3 api post