playframework - Bind a Date in milliseconds representation -
i need bind date using milliseconds representation in controller (i.e. milliseconds 01.01.1970). tried using @as("s")
had no success, fails value @ least 1000. there no way without writing custom binder?
edit: seems writing custom binder way go because play's datebinder
uses simpledateformat
, because of this bug. simpledateformat
doesn't accept these kinds of formats.
afaik there's no way, because binder trying parse expecting date fields (and date millisec field 3 digit), , not calculate anything.
it's better bind millisecs long , create date it.
Comments
Post a Comment