similar to: TZInfo::Timezone problem selected value

Displaying 20 results from an estimated 120 matches similar to: "TZInfo::Timezone problem selected value"

2007 Apr 19
1
Time zone mapping from TimeZone to TZInfo::Timezone
Hi. Using this: <%= time_zone_select("account", "time_zone" %> I get a list of time zones options, like eg.: <option value="Athens">(GMT+02:00) Athens</option> But as I''m using TZInfo::Timezone, I need to map ''Athens'' to ''Europe/Athens'' I can see that the mapping I''m looking for is
2006 May 19
1
flickr like DST timezone management
Hello everyone I wonder if anyone can point me to the library for timezone management with DST support, which has timezones, like flickr has. I know that there is TZInfo, but it''s a bit different for it has huge list of available timezones in ''Continent/City'' format. I would like my application to have timezones list more like on flickr (or windows regional settings) -
2007 Apr 03
1
Some timezone trouble involving tzinfo and postgresql
Friends, So there I was, minding my own business, trying to make my rails app timezone aware (DST, as well), since it''s all about the timing with this one. There are a number of excellent articles that I''ve been working off of, in particular this one internet archived version of Scott Barron''s very useful article on the subject that is no longer available at the
2006 Jan 30
1
Introduction & time_zone_select with mapped TimeZone question
I''m new to this list, I''m a student in History, Computerscience and a bit of Philosophy from the Netherlands... I have started using rails a few weeks ago, I did read the Agile Webdevelopment with Rails book, and I generally started to love Rails for it''s sheer beauty and intelligent structure... However I came across something that puzzles me quite a bit. It''s
2010 Apr 16
1
time_zone_select :priority_zones not working properly
I sent this earlier but I don''t think it ever came through. 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 =>
2008 May 15
0
Display time in “US-Central” Format Tzinfo
Hi , Is there anyway I can display time in “US-Central” or “US-Eastern” format instead of “ America-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'',
2008 Jan 02
1
time_zone_select
Hi, I am using the tzinfo gem and plugins to manage time zone support in my app. In one of the views I have the following select <%= time_zone_select ''user'', ''time_zone'', TZInfo::Timezone.all.sort, :model => TZInfo::Timezone %> This produces a list of all possible countries, does anyone know of a way to only display the UTC + / - options and not the
2007 Dec 21
1
time_zone_select helper enhancement
As we all know it, Time Zones are a pain in the neck. Rails make things easier by providing some nice helpers. However, I recently faced a challenge when trying to pre select a time zone for a user. Using the time_zone_select helper, there''s simply no way you can pre select a timezone for a user unless you already saved the time zone in his/her record. Creating a new user or editing a
2012 Sep 03
0
time_zone_options_for_select method in ActionView::Helpers is not DST aware
We are using time_zone_options_for_select for the letting the user to select the timezone to assign to an object. But we are having trouble because currently we are on DST period, so in utc -5 but the list is showing utc-6 (the normal offset) As per usage suggested in this issue: https://github.com/rails/rails/issues/7297. I wrote a custom method to solve this temporarily:
2011 Nov 11
1
time zone not getting saved in the database
Hello, Using rails 2.3.9 and ruby 1.8.7 I am trying add time zone in the site according to user''s time zone (selected by the user from the drop down of time zones)Code is done as follows, but time zone is not getting saved in the database. IN Application Controller before_filter :set_time_zone def set_time_zone Time.zone = current_user.time_zone if current_user end IN View
2009 Mar 20
1
Getting a Time Zone abbreviation from the full name?
There''s got to be an easier way... I am building an event manager and as part of it, the user selects the time zone of the event from a drop-down list using the time_zone_select helper. This is stored in the events table as a string. Because of legacy data which is stored in UTC, I want to keep the dates and times in the table as UTC but when I display it, I want to show the abbreviated
2008 Jan 14
1
Problems with forms
hello all i''m a newbie on mechanize, but already had some success. But now i''m in a real problem : The following HTML-Code is not parsed corect, not all form element are found. I''can''t change the server-code. How to fix ? HTML-Site ------X-----------------------------------------------------------------------X- <!DOCTYPE HTML PUBLIC "-//W3C//DTD
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
2003 Sep 01
2
MGCP question
Hi List I have one question about MGCP in asterisk. I have a media gateway, and I want to have asterisk to work with the media gateway. As I was told that the media gateway can communicate with the switch via standard interface MGCP/ICGP. Question is if the asterisk MGCP supports such MGCP message ??? Thanks. George Lin
2006 Aug 31
0
time_zone_select Acting Funky
I am using time_zone_select for the first time: <%= time_zone_select(''user'', ''default_timezone'') %> I have an instance variable called user and that model has an attribute called ''default_timezone''. The list displays and when I submit the form, I see it sends the data: Parameters:
2006 Sep 01
0
time_zone_select Doesn't Update in Save
I am using time_zone_select for the first time: <%= form.time_zone_select(''default_timezone'') %> I have an instance variable called user and that model has an attribute called ''default_timezone''. This is all inside a nice form_form construct. The list of time zones displays and when I submit the form, I see it sends the data: Parameters:
2006 Jul 10
0
tzinfo time zones and us states
Hi, I am just starting to work with tzinfo, and I need to figure out how US states map to tzinfo time zones, or in other words what time zone(s) each US state is in. If anybody has already collected this data and would be willing to share it (and thus save me a couple of hours of work) that would be highly appreciated! Thanks! Ingo -- Posted via http://www.ruby-forum.com/.
2007 Jan 28
0
tzinfo on dreamhost - help?
Hey everyone - I googled till my face was blue and finally managed to update my setup at dreamhost to run "local" gems. Installed the tzinfo gem from a mirror and updated my app to Rails edge. I fired up the console in my app to check if my subsequent install of tzinfo worked out and here''s the output. $ ruby script/console Loading development environment. >> gem
2008 Jul 16
0
Rails 2.1.0 and tzinfo plugin
I am upgrading a Rails 1.2.6 app to Rails 2.1.0 that had used tzinfo gem to manage time zones. Time zone support is built into Rails 2.1.0 and is based on the tzinfo gem. However, it is slightly different (I do not know how slightly) and causes a time based test to fail that passes in Rails 2.0.2 (since it did not have Time Zone support, it uses the tzinfo gem and the test works). If there is
2006 Nov 28
0
tzinfo_timezone/tzinfo can't modify frozen object
Hi. I get the following error off and on in my app. I''m running latest EdgeRails in development mode, and use the tzinfo_timezone plugin and the tzinfo 0.3.3 gem. I''ve checked line 210 in tzinfo_timezone.rb but cannot relate that to an object modification in tzinfo. Any tips much appreciated. ActionView::TemplateError (can''t modify frozen object) on line #29 of