Forum: Ruby on Rails Formatting of Date on Remote-Server

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mario P. (Guest)
on 2008-10-31 21:00
Hi there,

let's first introduce myself as a new member ;) My Name is Mario. I'm
from Germany and producing the site

As I just released the site these days I found an error in different
date formatting on the remote MySQL-Server. Please have a look and
perhaps you might give me an advice:

Easy as is, the View: <%= @page.updated_at.strftime("%d.%m%.%Y") %>

On my local development site it looks like this :

formatted -> 30.10.2008
unformatted -> Thu Oct 30 23:50:52 +0100 2008

Through the remote MySQL on the website it looks like this :

formatted -> 30.10%2008
unformatted -> 2008-10-31 04:46:44 UTC

Guess, you see the question ;) Where does that "%" result from???????

Any answer will be appreciated ;)

sw0rdfish (Guest)
on 2008-10-31 21:03
(Received via mailing list)
I'm pretty sure you're syntax is wrong...


should be


On Oct 31, 3:00 pm, Mario Peterscheck <rails-mailing-l...@andreas-
Mario P. (Guest)
on 2008-10-31 21:22
sw0rdfish wrote:

Absolutely blaming! Too much code seen the last few weeks :)

That's it - Thanks a hundred times!!!!!

sw0rdfish (Guest)
on 2008-10-31 21:42
(Received via mailing list)
no problem... I do it all the time... spent three days trouble
shooting something cuz I spelt group; gruop

My last computer died the day I found that stupid mistake :P

On Oct 31, 3:22 pm, Mario Peterscheck <rails-mailing-l...@andreas-
This topic is locked and can not be replied to.