search for: us_zones

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

2010 Apr 16
1
time_zone_select :priority_zones not working properly
.... Sorry if this is a reposting. When using :priority_zones for time_zone_select in a manner described by the API docs for ActionView::Helpers::FormOptionsHelper I''m getting errors. Here is an API docs example: time_zone_select( "user", ''time_zone'', TimeZone.us_zones, :default => "Pacific Time (US & Canada)") When using this code I get "uninitialized constant ActionView::CompiledTemplates::TimeZone". The first thing I noticed was that TimeZone is camel cased. This seems confusing to me considering TZInfo::Timezone is proper cas...
2010 Apr 15
0
[Rails v3] time_zone_select :priority_zones not working properly
When using :priority_zones for time_zone_select in a manner described by the API docs for ActionView::Helpers::FormOptionsHelper I''m getting errors. Here is an API docs example: time_zone_select( "user", ''time_zone'', TimeZone.us_zones, :default => "Pacific Time (US & Canada)") When using this code I get "uninitialized constant ActionView::CompiledTemplates::TimeZone". The first thing I noticed was that TimeZone is camel cased. This seems confusing to me considering TZInfo::Timezone is proper cased. I...
2005 Dec 09
0
Time zone select
Quick question I have can easily create a nice time zone select with <%= time_zone_select("account", "time_zone", TimeZone.us_zones ) %> How can I select the default time zone that I want? Thanks, Zack
2007 Jan 24
1
Timezone abbreviation question
Is it possible to get timezone abbreviations using the TimeZone or TzinfoTimezone classes? Even after converting UTC to localtime it still reports the timezone abbreviation as UTC. Example: >> @tz = TzinfoTimezone.us_zones[2] => #<TzinfoTimezone:0x30868a0 @utc_offset=-28800, @name="Pacific Time (US & Canada)"> >> @tz.now => Wed Jan 24 12:36:56 UTC 2007 >> @tz.now.strftime("%Z") => "UTC" It seems to me that the timezone abbreviation (%Z) should be "PST...
2008 May 15
0
Display time in “US-Central” Format Tzinfo
...New york” or “ Europe-Athens” format at the top of drop down list using Tzinfo . I am presently using “time_zone_select” which displays US zones on top of drop down in “ America-New york” format . <%= time_zone_select (''profile'', ''time_zone'',TZInfo::Timezone.us_zones, :model => TZInfo::Timezone, :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 h...
2011 Mar 18
0
Convert Rails TimeZone name to MySQL timezone name?
For various reasons we need to use the CONVERT_TZ() function in mysql to convert times during queries. The timezone to be used in the conversion is based on the timezone the user selected when setting up their profile (from a select box populated with ActiveSupport::TimeZone.us_zone). The problem is that the zone names in rails differ from the names in MySQL. In rails we have a name like