Displaying 19 results from an estimated 19 matches similar to: "tzinfo_timezone/tzinfo can't modify frozen object"
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
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
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'',
2011 Mar 14
0
Acessar id através de url
Bom dia a todos.
Estou desenvovendo uma app e estou tentando o seguinte mas sem
sucesso:
No meu modelo de email (closed.erb) que é um email para informar que o
ticket foi fechado tenho um ticket_url:
<%= ticket_url :host => @host, :id => @ticket.id %>
Mas não consigo fazer com que o @ticket.id me retorne na url o ticket
em questão. Por exemplo digamos que o ticket 10 foi alterado e
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
...
2011 Feb 18
1
Rails plugins new official maintainers
Hey guys,
This is the final list of the new maintainers of each plugin.
We need two more things to do:
First please the owners of the repos add the rest of the maintainers.
Second I will add a note on each rails/plugin mentioning this repos updates.
So from now on, if someone else is interested in helping/contributing
please send a message to the appropriate repo owner.
verification
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
2005 Oct 19
1
TZInfo::Timezone problem selected value
hey, i have a record in the database gtm_zone with value ''Europe/London''
i want to have a select box with all the zones and the corrected selected
@firm.gmt_zone = Europe/London
TimeZone from ruby (trying to expand with TZinfo)
dont want to select Europe/London, and not sorted
<select id="firm_gmt_zone" name="firm[gmt_zone]">
<%=
2007 Feb 28
3
require tzinfo on rails 1.2
I''ve just upgraded rails to 1.2 and now everything breaks when accessing
pages that use tzinfo.
I get the following errors:
uninitialized constant FriendController::Timezone
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/dependencies.rb:477:in
`const_missing''
#{RAILS_ROOT}/app/controllers/friend_controller.rb:22:in `index''
Can someone please
2009 Mar 13
1
TZInfo included in Rails 2.2.2 vs. version on RubyForge
I downloaded version 0.3.12 of TZInfo from [1], and observed that it
has a very robust set of timezones including, for example, ''America/
Anchorage'':
irb(main):001:0> require ''rubygems''
=> false
irb(main):002:0> require ''tzinfo''
=> true
irb(main):003:0> TZInfo::Timezone.get(''America/Anchorage'')
=>
2006 Feb 03
1
Database Foreign Key - Basic question
Hi all
I''m still waiting on my Agile Rails book to arrive - in the meantime ...
As an exercise I''m making a Help Desk application.
If I have a Problems table with two foreign keys to a People table,
how do I set up my models, problems_controller list method, and then
simply display say my problem submitter person? Here is what I have so
far:
Problems table with columns:
id
2008 Dec 30
3
integration of tzinfo with icalendar
My interest in icalendar is more on the ical generation side instead of
the ical parsing side. As such, I did a bit of work on a tzinfo mixin
that will generate the timezone rules based on the tzinfo gem. This
lets you do the following:
estart = DateTime.new(2008, 12, 29, 8, 0, 0)
eend = DateTime.new(2008, 12, 29, 11, 0, 0)
tstring = "America/Chicago"
tz =
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) -
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 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
2006 May 25
3
Behavior Change in Scripts since 1.1?
Occasionally we need to run scripts (such as from cron) that have access
to the rails environment.
Since we''ve upgraded to 1.1 (I believe it coincides with that), all of
our scripts seem to run as unit tests.
An example (obviously useless), which would be store in the script
directory:
------BEGIN CODE----------------------------
RAILS_ENV = ''development''
require
2008 Jan 18
2
has_many :through with self-referencial AND polymorphism
Hello, despite many readings I still don''t understand how to solve my
problem.
I have Publication, Picture, File classes
A Publication can be related (a one way relation, like a www link) with
another Publication, Picture or File
I tried this :
Publication :
has_many :related_elements, :dependent => :destroy, :foreign_key =>
:publication_id
has_many :related, :through =>