I have a database with unix timestamps in it (saved as varchar)…
Right now I’m using the following to format it (item table, created_at
field)…:
Time.at(item.created_at.to_i).strftime("%Y-%m-%d %H:%M:%S")
I was wondering if it’s the most effective way to do it? Or if there is
a quicker way?