similar to: How to change timezone globally

Displaying 20 results from an estimated 20000 matches similar to: "How to change timezone globally"

2011 Apr 03
1
Timezone ActiveRecord and Rails3
I want to store, retrieve and handle all times inside my app in just one Timezone. => "New Delhi" for that I''ve set in my application.rb file, config.time_zone = "New Delhi" When i create a record like Event.create(:when => DateTime.new(2011, 5, 7, 16, 0, 0)) it creates an event record in my mysql db (local) with "when" field as "2011-05-07
2011 Mar 18
0
Convert Rails TimeZone name to MySQL timezone name?
For various reasons we need to use the CONVERT_TZ() function in mysql to convert times during queries. The timezone to be used in the conversion is based on the timezone the user selected when setting up their profile (from a select box populated with ActiveSupport::TimeZone.us_zone). The problem is that the zone names in rails differ from the names in MySQL. In rails we have a name like
2007 Dec 05
3
No timezone in Voicemail email?
Hello, I'm using Asterisk 1.4.14, and I've noticed that the emails that are sent out when a user gets a voicemail don't have the timezone set in the header, so they're appearing in the user's email clients at the wrong time. Has anyone else seen this? I didn't find any bug reports or other info with Google. -- Jason Martin Metrix Matrix, Inc. 785 Elmgrove Road,
2008 Dec 29
3
TimeZone Mystery on a virtual dedicated server
Hi, I have a weird problem woth the time zone on my virtual (goDaddy) dedicated server I had to setup the timezone using system-config-date to GMT+7 i am in NY (GMT-5) when i do GMT-5 i get all the times 2 hours ahead seems like there's something im missing here If i add an event to my web app let's say 7:30 - 8:15 , the only way for me to show it right is GMT+7 can anyone help me
2005 Apr 19
1
timeSeries Date Warning messages: Set timezone to GMT!
Hello, I must be doing something wrong that's very obvious. But I just don't see it. I changed my Windows Time Zone to GMT and my Financial Center to Montreal. But I still get several warnings. >Sys.timezone() [1] "GMT Daylight Time" >myFinCenter [1] "Montreal" >Sys.timeDate() [1] "Montreal" [1] [2005-04-19 10:55:02] Warning messages: 1: Set
2006 Nov 17
4
set empty values as null in the database
Le''s say that I have a table called people and the column middle_name is nullable. If the user enters say blank or empty space then in the database it is recorded as empty space. I would like in all my models all empty spaces to be recorded as null. I guess I can write a plugin which will do so for all the models but I''m sure something like that should already be existing.I
2017 Oct 16
0
Another issue with Sys.timezone
>>>>> Stephen Berman <stephen.berman at gmx.net> >>>>> on Sun, 15 Oct 2017 01:53:12 +0200 writes: > (I reported the test failure mentioned below to R-help but was advised > that this list is the right one to address the issue; in the meantime I > investigated the matter somewhat more closely, including searching > recent R-devel
2012 Jun 13
0
Weird (?) ActiveSupport::TimeZone parse behaviour
Hi I must be slipping, but say I have a string that looks like: 3/11/2012 2:50:00 AM If I use the UTC timezone and ask it to parse this time, what would you expect the result to be? Personally, I''d say 3/11/2012 2:50:00 AM UTC Given this is the DST switchover date (for some places) this is an edge case. It''s the "spring forward" rule so 2:50 AM is 3:50... But
2006 Aug 09
6
How to change the error message easy way
validates_presence_of :fname results in the error message "Fname can''t be blank". What I want is "First Name can''t be blank". I could do this def validate errors.add_to_base("First Name can''t be blank") if fname.blank? end I find this clunky and I have to put everyrhing in the validate method. Is there an easy to get what I want. I
2008 Jan 11
2
Syslog timezone issue
We recently upgraded (as in, backup, reinstall, selective restore) a couple of servers from CentOS-3.9 to CentOS-5.1. This generally went smoothly but we've encountered one confusing problem with syslog. Under CentOS-3, syslog entries were always dated in the host local timezone. With CentOS-5.1, they're dated in UTC *most* of the time, but occasionally in the local timezone. This has
2006 Jun 18
2
Hosting timezone differs of clients timezone
Hi, I have a website in production wich uses a lot of date and time calculations to show specific information. The timezone of my hosting service (Dreamhost) is PDT, and the timezone of my potential clients is CEST. There are 9 hours of difference between them. Is there an environment variable that I could adjust in my rails application, so all date/time values be set to CEST timezone? Thanks.
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
2017 Oct 19
0
Another issue with Sys.timezone
On Wed, 18 Oct 2017 18:09:41 +0200 Martin Maechler <maechler at stat.math.ethz.ch> wrote: >>>>>> Martin Maechler <maechler at stat.math.ethz.ch> >>>>>> on Mon, 16 Oct 2017 19:13:31 +0200 writes: (I also included a reply to part of this response of yours below.) >>>>>> Stephen Berman <stephen.berman at gmx.net>
2018 May 06
0
Sys.timezone (timedatectl) unnecessarily warns loudly
Dear R-devels, timedatectl binary used by Sys.timezone does not always work reliably. If it doesn't the warning is raised, unnecessarily because later on Sys.timezone gets timezone successfully from /etc/timezone. This obviously might not be true for different linux OSes, but it solves the issue for simple dockerized Ubuntu 16.04. Current behavior R Under development (unstable) (2018-05-04
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
2017 Oct 14
0
make check Error: could not get timezone
On Fri, 13 Oct 2017 22:36:48 +0200 Stephen Berman <stephen.berman at gmx.net> wrote: > I just built the latest R-patched from source (SVN-Revision: 73548, Last > Changed Date: 2017-10-12) and the build completed without a problem but > `make check' errored out: > > running code in 'reg-tests-1d.R' ...make[3]: *** [Makefile.common:100: > reg-tests-1d.Rout]
2008 Nov 21
0
timezone attribute lost during operations
Hi, I was just *highly* surprised to find out that R 2.8.0 (Windows XP) changes the timezone-interpretation during operations on time data, as apparently the timezone attribute is lost and then, for the next interpretation of the timezone, the system settings are used. Here is sample code (executed under a platform with the system timezone managed by Windows set to "CET", but note
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]"> <%=
2008 Sep 30
2
setting timezone from kickstart
Hi all, I used to do manual installs so I would set the timezone each time. I have now migrated to kickstart and I wish to use a command line (at boot) parameter to set the needed timezone. I am familiar with timeconfig and that works. I tried timeconfig --help (looking for command line arguments) and there appears to not be a command line way that I see to set the timezone. I have seen
2014 Mar 24
1
Timezone warnings on package install in R-alpha
Dear all, As of the current R alpha release, I'm seeing timezone-related warnings on installing any package (including the recommended ones), which I haven't seen before. For example, [~/Documents/Source/R-alpha]$ bin/R CMD INSTALL ~/git/tractor/lib/reportr * installing to library '/Users/jon/Documents/Source/R-alpha/library' * installing *source* package 'reportr' ...