Rails DateTime format

55 views Asked by At

I have two different applications in rails 5.

I can't understand why in one of them (newest one) when I create a record the value of created_at is "2019-11-25 14: 08: 04.114384"

While in old the value of created_at is "25/11/2019 14:09:21.293691"

The 2 values are created automatically after creating a record, for example using modelName.save

How can this happen? The two app are in the same version.

How can I make the older app create the CREATED_AT value correctly and consistently (Just like the new one: "2019-11-25 14: 08: 04.114384")?

Thanks for help.

0

There are 0 answers