Forum: Ruby on Rails Preserving seconds fraction in PG timestamps when updating?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
81194a50c0f9bd95d7832a77fdf371bd?d=identicon&s=25 CSN (Guest)
on 2006-02-14 23:42
(Received via mailing list)
I have this code:

Link.find(params[:id]).toggle!('active')

Before it, its timestamp is:

2005-11-20 20:45:48.741973-07

After:

2005-11-20 20:45:48-07

Why does Rails take it upon itself to truncate the
seconds fraction? How can I get Rails to not change
it?

Thanks,
csn

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
This topic is locked and can not be replied to.