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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -