similar to: Why does Time.now.utc? return false?

Displaying 20 results from an estimated 100000 matches similar to: "Why does Time.now.utc? return false?"

2014 Aug 07
1
UTC time zone on Windows
Hi I'm having trouble running R CMD build and check with UTC time zone setting in Windows Server 2012. I can't seem to get rid of the following warning: unable to identify current timezone 'C': please set environment variable 'TZ' However, setting TZ to either "Europe/London" or "GMT Standard Time" didn't help. It seems to me that the
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 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''] =
2006 Jul 17
0
Weird problem with TimeZone::adjust and TimeZone::unadjust. Please help.
I''m not sure I''m understanding this correctly. I have a user model that is for all of my user accounts. Each user account has a time zone. I added this line to automatically create a TimeZone object for that user using their timezone: composed_of :tz, :class_name => ''TimeZone'', :mapping => %w(time_zone name) I also changed my environment.rb to
2012 Jun 15
2
time zones and the chron to POSIXct conversion
Hey R folks, i found some strange (to me) behaviour with chron to POSIXct conversion. The two lines of code result in two different results, on ewith the correct time zone, one without: library(chron) as.POSIXct(chron('12/12/2000'), tz = 'UTC') as.POSIXlt(chron('12/12/2000'), tz = 'UTC') Only the code below would give me a POSIXct object with the correct time
2008 Sep 11
2
time value won't come back from UTC
Hi there, I''m fairly new to RoR, and I seem to be having a problem with :time types. I save my times with a time_select on my form, to a time type field on MySQL. Rails automatically pulls it back to UTC from my timezone (+02:00), but when I display it again, it stays at the UTC value, i.e. I enter in 6:30, and I get 4:30 on my list. Is it just me, or is this a limitation of the time
2006 Mar 07
4
POSIX time zone codes
The manual entry for as.POSIX says this about time zone codes... Usage as.POSIXct(x, tz = "") tz A timezone specification to be used for the conversion... but it fails to mention what these "specifications" are. So far, I have tried... as.POSIX(x, tz="UTC") ... works, gives UTC times as.POSIX(x, tz="UTC") ... works, gives EST times as.POSIX(x,
2009 Jan 17
0
Created_at date/time if off by UTC-5 hours ?
Hello - My model has created_at and updated_at which get set automatically, as expected, but the time is 5 hours off. For example, if I create a new record at 7:15:25 AM the created_at time shows 12:15:25. I suspect this has to do with my time zone (Eastern Time, United States). But if I do a Time.now, it shows the correct time. Does the Timestamp class use a different zone than the Time
2011 Jul 20
1
Time.zone is nil creating problems
Hello guys, I am using ruby 1.9.2-p290 and rails 2.3.11 and when i am trying to run Time.zone in my console it is showing me nil and when i am trying to mention it in the environment.rb file by config.time_zone = ''UTC'' it is showing me an error .rvm/gems/ruby-1.9.2-p290/gems/rails-2.3.11/lib/initializer.rb:561:in `initialize_time_zone'': Value assigned to
2015 Jun 24
0
yum and yumex change system time
On 06/23/2015 04:47 PM, g wrote: > > Richard, thank you for your response. > > > On 06/23/2015 02:51 PM, Richard wrote: > <<>> > >> I agree, so my questions are: >> >> - what is your TZ? > > u.s.a. 'central time zone' - currently on 'daylight savings time'. > >> - what does "[/bin/]date" show?
2017 Feb 01
0
time zone
> -----Original Message----- > From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of Richard > Sent: Tuesday, January 31, 2017 7:52 PM > To: CentOS mailing list > Subject: Re: [CentOS] time zone > > > > > Date: Tuesday, January 31, 2017 19:35:46 -0500 > > From: TE Dukes <tdukes at palmettoshopper.com> > > > >> From: CentOS
2010 Dec 16
0
Icecast Logs Timestamp in UTC
On Thu, Dec 16, 2010 at 12:29:58PM -0800, Bryan D. Brown wrote: > I'm having a major problem with the timestamps in both the Icecast access.log and error.log. The timestamp on the logfiles themselves is accurate, but the logging of the various connections to my streams is in UTC. No matter how I try to configure the hwclock or the system clock, the log timestamp is always UTC, which is 8
2010 Dec 16
1
Icecast Logs Timestamp in UTC
Tom, Is it the icecast process that's the issue, or is it the user under which the process runs? FWIW, I call icecast from the command line, not an init script. This is a dedicated machine, so there's nothing else of note running under this particular (and only, aside from root) user. If fact, the only reason there is a user on this box is for non-root SSH and for icecast. Thanks
2024 Oct 11
1
Time zones in POSIClt objects
?s 15:13 de 10/10/2024, Jeff Newmiller via R-help escreveu: > POSIXt vectors do not support different time zones element-to-element. > > If you want to keep track of timezones per element, you have to create a vector of timestamps (I would recommend POSIXct using UTC) and a parallel vector of timezone strings. How you manipulate these depends on your use cases, but from R's
2007 Apr 04
1
time zone problems
Folks, I'm having trouble with how datetime objects with time zones are set and plotted. This may be the result of my running R (2.4.0) on a Windoze XP box. Perhaps not. Here are two example problems I need advise on if you have time: 1) I collect data with dates (often as a fractional day of year) in UTC. Using strptime to create date time objects appears to force the data into
2006 May 21
1
POSIX, time zone and Windows
Dear Listers, Apologize to pile up on the 'tz' issue in POSIX objects. I have a 'simple' thing on which I must make up my mind but cannot do it from the existing R-help threads. I am currently working on dog telemetry in China, and download time information from GPS collars. I would like to set up the corresponding POSIXxx variables in R to a given time zone. Eg Pekin
2015 Jun 23
2
yum and yumex change system time
Richard, thank you for your response. On 06/23/2015 02:51 PM, Richard wrote: <<>> > I agree, so my questions are: > > - what is your TZ? u.s.a. 'central time zone' - currently on 'daylight savings time'. > - what does "[/bin/]date" show? [geo at boxen ~]$ date Tue Jun 23 14:54:42 CDT 2015 > - what does your hardware clock:
2012 Dec 06
1
Incorrect DST time changes in DateTimeClasses
Can anyone please shed any light on why R DateTimeClasses give weird times for when daylight saving time information changes, and which aren't consistent with the OS? Example: Expected result: in New Zealand DST stopped (NZDT -> NZST) at 03:00 NZDT on 2010-04-04, as confirmed by the OS time zone info (OS X 10.8.2): zdump -v /etc/localtime /etc/localtime Sat Apr 3 13:59:59 2010 UTC
2006 Jul 17
1
Using UTC as the time zone?
I read in the rails recipes book that it is best to store times as UTC in the database. How do I do this? My server is located in GMT -6 CST. Do I need to change my server to use UTC or what? Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL:
2024 Sep 24
2
Question about Date Object and time zones
Hello, I have a question regarding the date objects and timezones. My current understanding is, that a Date object does only save the days from the origin and no more information about timezones or other information (please correct me if I am wrong). But if I use d = as.Date("2024-11-11") or d = as.Date("2024-11-11", tz="America/New_York") the date object is