On Friday, July 14, 2017 at 11:55:13 PM UTC-7, Satyanarayana Gandham wrote:
>
> Hi,
>
> I have a column which is time only. I store only the timings but not the 
> date like store opening & closing time independent of the day. I am using 
> mysql2 gem. When the object is loaded from the database, I am getting Time 
> objects but the date on the time object is point to 2000-01-01.
>
> How can I configure sequel to return the date to current date? I wish to 
> compare against current time to check the availability of the store.
>

Sequel's mysql2 adapter doesn't do its own typecasting, it relies on 
mysql2's typecasting, so you'll have to ask the mysql2 developers.

Alternatively, you could use the mysql adapter, which does use the current 
date for the Sequel::SQLTime objects it creates for time column values.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to