SyntaxFix
Write A Post
Hire A Developer
Questions
What you need is the function strftime:
Time.now.strftime("%Y-%d-%m %H:%M:%S %Z")