From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2010-06-12T17:20:16+09:00 Subject: DateTime about the zone i'm reading a news server from ruby asking for DATE, it returns : "20100612" for the date, that's ok for today and : "073429" for the time when it is 2 hours more i want to return a correct datetime, taking into account the zone 5paris/france) i think it is + 2 H ? but using datetime and the following : text = ["20100612", "073429"] # returned by the server thru Net::NNTP i translate to = datetime_str = text[0].gsub(/(\d\d\d\d)(\d\d)(\d\d)/,'\1-\2-\3')+'T'+text[1].gsub(/(\d\ d)(\d\d)(\d\d)/,'\1:\2:\3')+'-02:00' giving : datetime_str = '2010-06-12T07:34:29+02:00' if i read back the hour by : datetime = DateTime.parse('2010-06-12T07:34:29+02:00') time = adatetime.strftime(fmt='%H%M%S') i get always : 073429 regardless of the time decay i put by the end of string (ie '+02:00' or '-02:00' or 'CEST' clearly i don't understand... -- � La gloire n'est pas de ne jamais tomber, mais de se relever chaque fois que l'on tombe. � (Proverbe chinois)