search for: utc_offset

Displaying 14 results from an estimated 14 matches for "utc_offset".

Did you mean: itc_offset
2008 Sep 22
8
TimeZone daylight savings time problems
Here is the following from my console: >> Time.now => Mon Sep 22 11:33:34 +0200 2008 >> Time.now.utc_offset => 7200 >> TimeZone[Time.now.utc_offset] => #<TimeZone:0x11aea90 @tzinfo=nil, @utc_offset=7200, @name="Athens"> >> Time.now.in_time_zone(TimeZone[Time.now.utc_offset]) => Mon, 22 Sep 2008 12:34:22 EEST +03:00 (I am in Spain - CET - and running on OS X with the...
2006 Jan 30
1
Introduction & time_zone_select with mapped TimeZone question
...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 how to add a time_zone_select form field using a composed_of class with mapped utc_offset and name fields... In my form I have: <%= time_zone_select(''user'',''time_zone'') %> In my user-class I have: composed_of :time_zone, :class_name => ''TimeZone'', :mapping => [%w(time_zone_name name) %w(time_zone_utc_offset utc_offset...
2010 Jun 14
2
How to disable day light saving on Snom 360 phones?
...hours difference. The phones are provisioned from a tftp server. If I remove 'dst' value from the provisioning file, on bootup phones force users to pickup a time zone. The only suitable timezone is 'GBR-0', but it's Greenwich time, which does take in account DST. If I do 'utc_offset: -3600', it'll be good only until next DST. Does anybody khow can I achieve this? Thanks, Zeeshan A Zakaria -- www.ilovetovoip.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100614/947bdd...
2009 Mar 31
2
TimeWithZone seems in rails 2.3 seems broken...is this the correct behavior?
...a UTC value? I can get the correct value by extracting the "Time" with no zone, and then recreating a new TimeWithZone. But that can''t be the best way! Loading development environment (Rails 2.3.2) >> Time.zone => #<ActiveSupport::TimeZone:0xb795cbc8 @tzinfo=nil, @utc_offset=0, @name="UTC"> >> event=Event.find(1) => #<Event id: 1, edate: "2009-03-30 12:00:00"> >> event.edate => Mon, 30 Mar 2009 16:00:00 UTC +00:00 >> zutc= ActiveSupport::TimeZone.new(''UTC'') => #<ActiveSupport::TimeZone:0xb7...
2009 Jul 21
1
Problem with INTERNALDATE when the year in localtime and GMT different
In my thought utc_offset function in src/lib/utc-offset.c returns wrong offset value when the year in localtime and GMT different. /* max offset of 24 hours */ if (ltm.tm_yday < gtm.tm_yday) offset = -24 * 60; else if (ltm.tm_yday > gtm.tm_yday) offset = 24 * 60; else offset = 0; I think this code should be...
2007 Sep 06
0
3 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...date.c index c7c3c89..6e2e30a 100644 --- a/libswfdec/swfdec_as_date.c +++ b/libswfdec/swfdec_as_date.c @@ -138,7 +138,7 @@ swfdec_as_date_get_milliseconds_local (c g_assert (swfdec_as_date_is_valid (date)); if (isfinite (date->milliseconds)) { - return date->milliseconds + date->utc_offset * 60 * 1000; + return date->milliseconds + (double) date->utc_offset * 60 * 1000; } else { return 0; } @@ -148,7 +148,7 @@ static void swfdec_as_date_set_milliseconds_local (SwfdecAsDate *date, gint64 milliseconds) { date->milliseconds = - milliseconds - date->utc_...
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" in this case. -- Posted via http://www.rub...
2010 Apr 30
0
using in_groups_of to get data to display horizontally
...;'m wondering how I can get the time to display next to the name, not below it. - @clock.in_groups_of(2) do |group| %tr.header - group.each do |item| %th= item.name %tr - group.each do |item| %td %span.value{"offset" => item.zone.now.utc_offset} = item.zone.now.to_s(:us_short_time) Thanks for any response. -- 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-/JYPxA39...
2005 Mar 09
21
Converting time retrieved from MySQL
I''m having a problem converting a date retrieved from my MySQL database and I''m hoping someone can help. MySQL stores the date/time as this: 2005-03-08 17:00:34.0 and according to my Pickaxe book Ruby stores times as "the number of seconds and microseconds since [...] January 1, 1970". All well and good. Unfortunately, RoR is converting my date to this:
2006 Mar 15
7
rails on OS X 10.3.9 not working
Hello, I''ve installed Ruby 1.8.4 via Darwinports, installed gem 0.8.11 too and then installed Rails via gem. I''m using OS X 10.3.9. When I now type rails in the terminal, the following lines appear: # rails /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/ active_support/values/time_zone.rb:12: undefined method `attr_reamer'' for TimeZone:Class
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...a/libswfdec/swfdec_as_date.c b/libswfdec/swfdec_as_date.c index 148e61d..648b50f 100644 --- a/libswfdec/swfdec_as_date.c +++ b/libswfdec/swfdec_as_date.c @@ -1036,8 +1036,11 @@ swfdec_as_date_construct (SwfdecAsContext *cx, SwfdecAsObject *object, date = SWFDEC_AS_DATE (object); - date->utc_offset = - SWFDEC_PLAYER (SWFDEC_AS_OBJECT (date)->context)->system->utc_offset; + /* FIXME: find a general solution here */ + if (SWFDEC_IS_PLAYER (SWFDEC_AS_OBJECT (date)->context)) { + date->utc_offset = + SWFDEC_PLAYER (SWFDEC_AS_OBJECT (date)->context)->priv->syst...
2006 Mar 24
8
Snom 360 problems
Anyone have a Snom they're happy with? How did you manage that? :) I have a system of: Asterisk 1.2.3 2 Wildcard TDM400P Rev I and E/F 1 Snom 360 + sidecar ~15 Sipura/Linsys SPA-841 ~15 Grandstream 101 Everything (currently) is on the same network, not a router to be seen between any two. Also everything, except the snom, is working sweetly. The main problem is ECHO.. awful echo and
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
The build failed. CHANGES ------- Revision 8649 committed by gbuesing on 2008-01-16 20:07:10 Introducing DateTime #utc, #utc? and #utc_offset, for duck-typing compatibility with Time. Closes #10002 M /trunk/activesupport/CHANGELOG M /trunk/activesupport/lib/active_support/core_ext/date_time/calculations.rb M /trunk/activesupport/test/core_ext/date_time_ext_test.rb TEST FAILURES AND ERRORS ----------------------- Name: test_belon...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...on-construct mode, add test diff --git a/libswfdec/swfdec_as_date.c b/libswfdec/swfdec_as_date.c index 50b4ad9..148e61d 100644 --- a/libswfdec/swfdec_as_date.c +++ b/libswfdec/swfdec_as_date.c @@ -1039,6 +1039,10 @@ swfdec_as_date_construct (SwfdecAsContext *cx, SwfdecAsObject *object, date->utc_offset = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (date)->context)->system->utc_offset; + // don't accept arguments when not constructing + if (!cx->frame->construct) + argc = 0; + // special case: ignore undefined and everything after it for (i = 0; i < argc; i++) { if...