I try to save timestamp field to postgresql using anorm. In scala code date/time stored as instance of java.time.Instant (someTime variable)
DB.withConnection() { implicit c =>
SQL("INSERT INTO t_table(some_time) values ({someTime})").on('someTime -> someTime)
}
But anorm can't work with it now (Play 2.3.7).
What is the best way to make it work?
I believe most people are using JodaTime so might explain why its missing. If its not part of Anorm you can write your own converter.
This is untested but it would look something like below