alexherbo2 has joined #amber
<
FromGitter>
<Blacksmoke16> sure seems like a limitation of how amber instantiates the models
<
FromGitter>
<Blacksmoke16> oh, check to see what the value of `prospect_params.validate!` is
<
FromGitter>
<Blacksmoke16> might be able to change the value of `date` in that, then pass that to `Prospect.new`
<
FromGitter>
<Blacksmoke16> can you do the `params["date"] = Time.parse(params["date"], "%F", Time::Location.load("UTC"))`?
<
FromGitter>
<renich_gitlab> @Blacksmoke16 it fails with the error mentioned on my second to last message.
<
FromGitter>
<Blacksmoke16> imo i've been against Granite handling conversion of String into stuff
<
FromGitter>
<Blacksmoke16> thats something the framework should handle, not an ORM
<
FromGitter>
<renich_gitlab> It's a bit confusing to me.
<
FromGitter>
<Blacksmoke16> er `value : String, type : Time.class`
<
FromGitter>
<Blacksmoke16> or `type : Time?.class`
<
FromGitter>
<Blacksmoke16> something along those lines
<
FromGitter>
<renich_gitlab> OK, let me try that.
<
FromGitter>
<renich_gitlab> oh, man. This is so complicated... :S
<
FromGitter>
<renich_gitlab> btw, thanks @Blacksmoke16 for your attention. I appreciate the help so far.
<
FromGitter>
<Blacksmoke16> 🎉 nice!
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo2 has joined #amber
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo2 has joined #amber
alexherbo23 has joined #amber
alexherbo2 has quit [Ping timeout: 265 seconds]
alexherbo23 is now known as alexherbo2