search for: utc_to_loc

Displaying 6 results from an estimated 6 matches for "utc_to_loc".

Did you mean: utc_to_local
2007 Apr 03
1
Some timezone trouble involving tzinfo and postgresql
...hat is no longer available at the original URL that is linked to from the TZInfo page: http://web.archive.org/web/20060425190845/http://lunchroom.lunchboxsoftware.com/pages/tzinfo_rails I''m not looking to pull of anything fancy here, but I''ve ended up a bit of a stumper in which utc_to_local appears to be adjusting the UTC- stored time twice. This is what I''ve done so far: 1. Set ENV[''TZ''] = ''UTC'' in config/environment.rb 2. Uncommented this line in config/environment.rb: config.active_record.default_timezone = :utc 3. Installed the tz...
2006 Mar 16
5
TimeZone, TZInfo, daylight savings, and composed_of
Does anyone know the best way to track time zone information. There doesn''t seem to be much documentation on this. So far it seems like a simple db field like create table accounts ( id int unsigned not null auto_increment, name varchar(50) not null, time_zone varchar(50) not null, ... primary key (id) ) and a class like class Account < AR ...
2006 Nov 28
0
tzinfo_timezone/tzinfo can't modify frozen object
.....''), ticket_url(ticket), {:title => sanitize(ticket.description)}%> 27: <div class="subtext" style="margin-top:3px; margin-bottom:14px;"> 28: #<%= ticket.id%> 29: | Submitted <%=format_date(@this_user.tz.utc_to_local(ticket.created_at))%> by <%= name_or_me(ticket.submitter_id, Proc.new {ticket.submitter.name})%> 30: | <%=ticket.status%> <%if ticket.ticket_type_id?%><%=ticket.ticket_type.downcase%><%end%> 31: <%if ticket.priority_id?%> |...
2006 Jun 07
4
Setting default timezone ENV[''TZ'']=''UTC'' not working on windows?
Hi, I''ve been trying to do timezone conversion, and have some trouble getting it to work on my Windows machine. Searching the web, I found http://wiki.rubyonrails.com/rails/pages/HowtoSetDefaultTimeZone ...which explains how to set the default timezone. I''m using an environment.rb that include the lines: ActiveRecord::Base.default_timezone = :utc ENV[''TZ''] =
2008 May 15
0
Display time in “US-Central” Format Tzinfo
...imezone, :default => "America/Chicago" )%> I can display US zones in “ (GMT - 06:00 ) CentralTime (US & Canada)” by using standard rails TimeZone ( <%= time_zone_select (''profile'', ''time_zone'' > ) . But , I will have problem when I use “utc_to_local” method . Thanks, Madhu Nallamani --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org...
2008 Jan 24
2
Meridian case
Hi there, I have a *really* weird issue with rspec on rails: Given a time meridian formatted using %p When I run `rake spec` the time meridian is converted to lower case: expected: "Today 08:00 PM", got: "Today 08:00 pm" Yet when I run `rake spec:models` and `spec -cfs app/models` the specs pass, ie the the time meridian is in upper case. Anyone got any ideas how I