Displaying 20 results from an estimated 10000 matches similar to: "Convert Rails TimeZone name to MySQL timezone name?"
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
2020 Oct 02
0
timezone tests and R-devel
Thank you for the report. In R-devel, all.equal.POSIXt() by default
reports inconsistent time zones. Previously,
> x <- Sys.time()
> all.equal(x, as.POSIXlt(x, tz = "EST5EDT"))
would return TRUE. To ignore the time zone attributes in R-devel, the
argument 'check.tzone = FALSE' needs to be used.
That said, I can reproduce the 'make check' failure in R-devel on
2008 Jan 08
0
Status of Timezone support / Handeling DTSTART; TZID="(GMT-05.00) Eastern Time (US & Canada)":20080107T123000
I can not tell from the docs or from the mailing list what is the
state of timezone support in the iCalendar package?
If I want to parse an iCalendar file that has non utc dstarts and
dends will it convert those times to UTC or otherwise allow me to do
that?
When I tried to parse an iCalendar input file started off with
something like this:
BEGIN:VCALENDAR
METHOD:REQUEST
2020 Oct 23
0
timezone tests and R-devel
So let me try to raise this issue once more, and perhaps be more clear
about what I think the issue is..
In my opinion there is now a bug in
make check
in R-development (tested today with r79361). As I see it, I specify a
reasonable TZ environment variable and this leads to make check emitting an
error.
Best,
Kasper
On Fri, Oct 2, 2020 at 11:28 AM Kasper Daniel Hansen <
kasperdanielhansen
2020 Oct 23
1
timezone tests and R-devel
Yes, you are absolutely right and I'm pretty sure this will be fixed in
one way or another.
IMO, the failing test should simply use all.equal.POSIXt's new argument
check.tzone=FALSE.
Two simple alternatives modifying all.equal.POSIXt behaviour:
- make check.tzone=FALSE the default: this is inconsistent with other
arguments of all.equal methods, always defaulting to stricter checks
-
2008 Sep 04
1
Timezone support?
This is a follow-up to the thread ending with:
http://rubyforge.org/pipermail/vpim-talk/2008/000120.html
I too am in search of some ruby parser for icalendar which properly handles
timezones on the datetimes in the icalendar RFC.
As I understand it there are actually three types of times.
1) UTC times with a string form of yyyymmddThhmmssZ
note the trailing Z indicates zulu time aka utc.
2)
2007 Oct 30
1
timezone conversion difficulties with the new US daylight saving time switch over
I'm having difficulties with daylight saving times in US time zones.
(Apologies for the long post, but the problem seems subtle and complex,
unless I'm doing something completely wrong, in which case it should
be evident from the first 10 lines below.)
This is what I see, using a (slightly modified) example from ?as.POSIXlt :
> as.POSIXlt((d <- Sys.time()), "EST5EDT") #
2020 Oct 02
2
timezone tests and R-devel
Yes, the potential issue I see is that
make check
fails when I explicitly set TZ. However, I set it to be the same as what
the system reports when I login.
Details: The system (RHEL) I am working on has
$ strings /etc/localtime | tail -n 1
EST5EDT,M3.2.0,M11.1.0
$ date +%Z
EDT
$ echo $TZ
US/Eastern
On Fri, Oct 2, 2020 at 9:48 AM Sebastian Meyer <seb.meyer at fau.de> wrote:
> Thank
2006 Mar 14
5
Indiana timezone changing
I have a couple questions... I am in Indiana and our time zone is changing.
I used to choose America/Indiana/Indianapolis as the zone and we are
changing
to Eastern.
Question 1) Is there a command line only way to change my timezone?
I dont have access to X to run system-config-time. Doing a
"system-config-time --help"
or "system-config-time -h" did not give any information.
2003 Aug 04
0
Windows 2000 Bug in GMT +/- n Timezones (PR#3644)
Tracking down this bug was joint work with Jermoe Asselin (jerome at
hivnet.ubc.ca) and Patrick Connolly (p.connolly at hortresearch.co.nz). We
collectively were able to determine that this is a problem in Windows 2000
but not in Linux.
Timezones of the form GMT-5, GMT+3, etc. do not work properly in Windows 2000
for nearby dates in daylight savings time although they do work for nearby
dates
2009 Sep 18
1
as.POSIXct(as.Date()) independent of timezone
Dear R users,
I am struggling a bit with the converting dates to full POSIX timestamps, in
particular, I would like to somehow force the timezone to be local, i.e. the
output of
as.POSIXct(as.Date("2008-07-01")) should always be equal to "2008-07-01
00:00:00", is that achievable ? I tried to set the origin and the timezone,
neither of which seems to make a difference.
On my Mac
2020 Oct 01
3
timezone tests and R-devel
The return value of Sys.time() today with a timezone of US/Eastern is
unchanged between 4.0.3-patched and devel, but on devel the following test
fails
all.equal(x, as.POSIXlt(x))
with
x = Sys.time()
This means that devel does not complete make tests (failure on
tests/reg-tests-2.R)
It is entirely possible that it is an error on my end, I use
export TZ="US/Eastern"
but I have been
2005 Apr 04
0
Rails timezone problems / DST
Last week I started to sketch out what would be involved in building a
calendar app in Rails. In the process I went looking for what Ruby
has in the way of Date/Time libraries, and in particular TimeZone
support. Was (pleasantly?) surprised to find that Rails seems to have
Ruby''s best timezone support. But it looks like it has a very serious
bug, it isn''t daylight saving
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''] =
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
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'',
2005 Aug 07
1
get timezone abbreviation
This is probably more a Ruby than a rails question, but when I call
the method strftime("%Z") on a Time object, it returns the full time
zone name "Eastern Daylight Time". Is there a way to get the
Abbreviation instead?
2004 Mar 05
2
3.8p1 not honoring TZ environment variable
Hello,
I just built openssh 3.8p1 on an HP-UX 11i machine. All looks well
except for the timezone. I'm noticing now that when it logs stuff to
syslog, it's off by 2 hours for me. What I've figured is this:
My timezone is MST7MDT (mountain time).
The timezone in /etc/default/tz is EST5EDT (eastern time).
There's a 2 hour difference between mountain & eastern time.
What
2003 Aug 04
0
as.POSIXct Bug when used with POSIXlt arg and tz= arg (PR#3646)
Tracking down this bug was joint work with Jermoe Asselin (jerome at
hivnet.ubc.ca) and Patrick Connolly (p.connolly at hortresearch.co.nz). We
collectively were able to determine that this is a problem in both Windows 2000
and in Linux and by testing it in our three time zones that it seems to be
daylight savings time related.
Conversion of POSIXlt datetimes to POSIXct appears to have problems.
2005 May 19
3
Timezone Configuration
Greetings All,
How to does one go about reconfiguring centos's time zone
configuration (to the eastern time zone (us)), via the command line?
I have tested other GNU/Linux distribution's documentation, tools,
files and relevant details with centos and have thus far been unable
to find a compatible solution.
My apologies if my question is very simple, I have done a fair amount
of