Hi, I am using rails 3 for my application. My problem is that I am importing the events from meetup.com. I am getting the time of the event but I don''t know from which time zone. E.g. Thu Apr 07 07:00:00 PDT I want to find out the time zone for it. Can anyone tell me how to achieve this? Thanks, Mike -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Apr 7, 2011, at 9:08 AM, Mike Disuza wrote:> Hi, > I am using rails 3 for my application. > My problem is that I am importing the events from meetup.com. I am > getting the time of the event but I don''t know from which time zone. > E.g. Thu Apr 07 07:00:00 PDT > > I want to find out the time zone for it. > Can anyone tell me how to achieve this?Sorry, isn''t "PDT" Pacific Daylight Time? If this is an example of the time strings you''re grabbing from Meetup, it seems like you could do a regular expression to grab everything after the last number in the time string and perform some lookups from there, right? Walter> > Thanks, > Mike > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails- > talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en > . >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 7 April 2011 14:08, Mike Disuza <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > I am using rails 3 for my application. > My problem is that I am importing the events from meetup.com. I am > getting the time of the event but I don''t know from which time zone. > E.g. Thu Apr 07 07:00:00 PDT > > I want to find out the time zone for it. > Can anyone tell me how to achieve this?Is it that you want the timezone, or are you just trying to correctly interpret the time? If the latter then: ruby-1.8.7-p302 > Time.parse("Thu Apr 07 07:00:00 PDT").utc => Thu Apr 07 14:00:00 UTC 2011 Colin> > Thanks, > Mike > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.