How can i remove the milliseconds from date time in rails? August 20, 2023 by Tarik I had a similar problem Update your time object like this before sending it to the database : time.change(:usec => 0)