Reputation: 6121
Time.now
will produce something like:
2013-07-24 22:23:08 -0700
I want:
2013-07-24 22:23:08
for subsequent entry into a DB. Gotta be something simple, but I didn't find it in Time docs. Writing Time.now.to_s[0..19]
sounds like bad programming.
Upvotes: 1
Views: 809