RE: timezone

2011-06-03 Thread Jerry Schwartz
From: John Daisley [mailto:daisleyj...@googlemail.com] Sent: Friday, June 03, 2011 6:09 AM To: Rocio Gomez Escribano Cc: mysql@lists.mysql.com Subject: Re: timezone now() returns the current system time which doesn't really have a great deal to do with time zones. [JS] I think

Re: timezone

2011-06-03 Thread John Daisley
t; have two timezones - it has a single timezone with daylight savings time. > The real question is, thus, to figure out wether or not you are on DST or > not. > > That, however, I have no idea how to do - the system takes care of it > automagically. I'm not even sure it gets

Re: timezone

2011-06-03 Thread Johan De Meersman
I would also like to point out, as an aside, that Spain doesn't actually have two timezones - it has a single timezone with daylight savings time. The real question is, thus, to figure out wether or not you are on DST or not. That, however, I have no idea how to do - the system takes ca

Re: timezone

2011-06-03 Thread John Daisley
means it takes the value from the host operating system ( usually set in /etc/timezone ). You can set the time_zone variable either globally or per session to an offset of UTC as follows *SET time_zone='+00:00:00';* *SET GLOBAL time_zone='+00:00:00';* Or you can specify

RE: timezone

2011-06-03 Thread Rocio Gomez Escribano
| now() | +-+ | 2011-06-03 11:28:00 | +-+ 1 row in set (0.00 sec) That’s correct, in Spain it’s that time. So, mysql is using the timezone correctly, isn’t it? Thanks! Rocío Gómez Escribano <mailto:r.sanc...@ingenia-soluciones.com> r.g

Re: timezone

2011-06-03 Thread John Daisley
Have you populated the timezone tables? Run this query if you are not sure. *SELECT COUNT(*) FROM mysql.time_zone_name;* * * ***If it returns 0 then you need to populate the them as per the instructions here http://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html* Default timezone in mysql

timezone

2011-06-03 Thread Rocio Gomez Escribano
Hello! I’m having trouble with timezones. I’m in Spain, we have 2 different timezone now we are in GMT+2, in winter, this is the GMT+1. I’m looking for an instruction which give me the current timezone, but I cant find it! Do you know how can I now it? Thanks! Rocío Gómez Escribano

RE: Changing the timezone

2011-02-24 Thread Travis Ard
set time_zone='Europe/Kiev'; -Original Message- From: Andre Polykanine [mailto:an...@oire.org] Sent: Thursday, February 24, 2011 10:23 AM To: mysql@lists.mysql.com Subject: Changing the timezone Hi everyone, since I'm using the shared hosting, I can't change

Changing the timezone

2011-02-24 Thread Andre Polykanine
Hi everyone, since I'm using the shared hosting, I can't change the default timezone for MySql. Question is: is there any query that I could launch in my connect.php before other queries to make my timezone change? For instance, I make a mysql_query("SET CHARACTER_SET_DATAB

RE: Any way to change timezone WITHOUT mysqld restart?

2010-10-04 Thread Daevid Vincent
alue from the global <http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar _time_zone> time_zone variable, but the client can change its own time zone with this statement: mysql> SET time_zone = timezone; The current session time zone setting affects display and s

Re: Any way to change timezone WITHOUT mysqld restart?

2010-10-03 Thread Johan De Meersman
I suggest you put your glasses on, then. Getting of that horse might help, too. default-time-zone='*timezone*' > > If you have the > SUPER<http://dev.mysql.com/doc/refman/5.1/en/privileges-provided.html#priv_super>privilege, > you can set the global server tim

RE: Any way to change timezone WITHOUT mysqld restart?

2010-10-02 Thread Bryan Cantwell
work in spite of what the manual says. On Fri, 2010-10-01 at 15:42 -0700, Daevid Vincent wrote: > Did you even look at the manual? > > http://lmgtfy.com/?q=mysql+set+timezone > > First link. > > > > -Original Message- > > From: Bryan Cantwell [mailto:b

RE: timezone questions

2010-03-29 Thread Daevid Vincent
> -Original Message- > From: Elim PDT [mailto:e...@pdtnetworks.net] > Sent: Monday, March 29, 2010 5:57 PM > To: mysql@lists.mysql.com > Subject: timezone questions > > data from one server in timezone A ported to another server > in timezone B, what will hap

timezone questions

2010-03-29 Thread Elim PDT
data from one server in timezone A ported to another server in timezone B, what will happen for the records with datetime columns? What is the recommended way of handling this kind of issues? Thanks -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Re: Change clock/timezone time without restart mysql

2009-10-16 Thread Joerg Bruehe
Jonas, your information is somewhat incomplete, but still: Jonas Silveira wrote: > Hi, > > > > I need to change the computer clock (changing the /etc/zoneinfo) but I would From the file name, I assume it is some Unix platform. > not restart de MySQL service. The NOW() still returning the o

Change clock/timezone time without restart mysql

2009-10-16 Thread Jonas Silveira
Hi, I need to change the computer clock (changing the /etc/zoneinfo) but I would not restart de MySQL service. The NOW() still returning the old time... Thanks, Jonas

Re: store timezone

2009-07-28 Thread Johnny Withers
Agreed. Store as UTC. You can always convert to the needed timezone during query or during display. See MySQL's CONVERT_TZ() function. On Tue, Jul 28, 2009 at 8:29 AM, Brent Baisley wrote: > MySQL doesn't support timezones (I think Postgres does). I usually > just store dates a

Re: store timezone

2009-07-28 Thread Brent Baisley
MySQL doesn't support timezones (I think Postgres does). I usually just store dates as Greenwich Mean Time and store the time zone hours offset in a separate field. Brent Baisley On Tue, Jul 28, 2009 at 7:59 AM, Manoj Singh wrote: > Hi All, > > Is it possible to store the timezone

store timezone

2009-07-28 Thread Manoj Singh
Hi All, Is it possible to store the timezone with datetime data type in mysql or any other approach available to achieve this in mysql. Looking for your help. Thanks, Manoj

RE: RE: what is the proper way to store timezone information?

2008-06-16 Thread Per Jessen
Boyd, Todd M. wrote: >> My concern is whether the time_zone_id is a fixed reference of the >> timezone. If the id might (for whatever reason) change in the >> future, I'd have to store the timezone name. > > http://dev.mysql.com/doc/refman/5.1/en/time-zone-support.h

RE: RE: what is the proper way to store timezone information?

2008-06-16 Thread Boyd, Todd M.
> -Original Message- > From: Per Jessen [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 14, 2008 6:23 AM > To: mysql@lists.mysql.com > Subject: RE: what is the proper way to store timezone information? > > Boyd, Todd M. wrote: > > >> > >> When

RE: what is the proper way to store timezone information?

2008-06-14 Thread Per Jessen
n you insert phone numbers into a database--is it > easier for you to parse back if you do so? If yes, then store the > formatting. If no/probably not/I don't need to parse it, then just > store it without. My concern is whether the time_zone_id is a fixed reference of the timezo

RE: what is the proper way to store timezone information?

2008-06-13 Thread Boyd, Todd M.
> -Original Message- > From: Per Jessen [mailto:[EMAIL PROTECTED] > Sent: Friday, June 13, 2008 5:17 AM > To: mysql@lists.mysql.com > Subject: what is the proper way to store timezone information? > > All, > > I will be recording timezone information based on

what is the proper way to store timezone information?

2008-06-13 Thread Per Jessen
All, I will be recording timezone information based on user input using the time zone names from mysql.time_zone_name - names like 'America/Los_Angeles'. When recording this information, do I store the full name or just the 'time_zone_id' which is present in mysql.time_zone_

Re: Timestamps replicating inconsistently depending on local timezone of server?

2008-05-14 Thread Rob Wultsch
On Wed, May 14, 2008 at 12:55 PM, Ed W <[EMAIL PROTECTED]> wrote: > Rob Wultsch wrote: >> >> This sounds like expected behavior to me. If you set the timezone one >> hour forward a timestamp will be one hour forward. The data stored on >> the server is the same,

Re: Timestamps replicating inconsistently depending on local timezone of server?

2008-05-14 Thread Ed W
Rob Wultsch wrote: This sounds like expected behavior to me. If you set the timezone one hour forward a timestamp will be one hour forward. The data stored on the server is the same, and will display the same if you change the timezone. The timezone setting when the insert occurred should have

Re: Timestamps replicating inconsistently depending on local timezone of server?

2008-05-14 Thread Rob Wultsch
restored the same > database as before and again replicated the same data across to catch up and > this time they show the same values. So basically the value retrieved from > the second database is influenced by the localtime options being different > on each server *at the time

Re: Timestamps replicating inconsistently depending on local timezone of server?

2008-05-13 Thread Ed W
Rob Wultsch wrote: On Tue, May 13, 2008 at 2:07 PM, Ed W <[EMAIL PROTECTED]> wrote: I had naively assumed that dates would always be stored in UTC in the database and the only effect of localtime would be for display purposes? Can anyone shed some light on what's happening here please?

Re: Timestamps replicating inconsistently depending on local timezone of server?

2008-05-13 Thread Rob Wultsch
On Tue, May 13, 2008 at 2:07 PM, Ed W <[EMAIL PROTECTED]> wrote: > I had naively assumed that dates would always be stored in UTC in the > database and the only effect of localtime would be for display purposes? > Can anyone shed some light on what's happening here please? "TIMESTAMP values are c

Timestamps replicating inconsistently depending on local timezone of server?

2008-05-13 Thread Ed W
Hi, can anyone explain mysql 5.0.54 handling of replication between two servers with inconstant /etc/localtime (but the same real clock time for UTC) On one server I inserted a new row with "created_at" and "updated_at" as the same time. Server localtime is GMT+1, created col is a date, upda

RE: zipcode to timezone

2007-07-06 Thread John Trammell
> -Original Message- > From: Hiep Nguyen [mailto:[EMAIL PROTECTED] > Sent: Friday, July 06, 2007 12:15 PM > To: Dirk Bremer > Cc: David T. Ashley; mysql@lists.mysql.com > Subject: RE: zipcode to timezone > > now, why do they do this??? it doesn't make any se

RE: zipcode to timezone

2007-07-06 Thread Hiep Nguyen
] www.nisc.coop -Original Message- From: Hiep Nguyen [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 10:51 To: David T. Ashley Cc: mysql@lists.mysql.com Subject: Re: zipcode to timezone On Fri, 6 Jul 2007, David T. Ashley wrote: On 7/6/07, Hiep Nguyen <[EMAIL PROTECTED]> wrote: w

RE: zipcode to timezone

2007-07-06 Thread Dirk Bremer
Nguyen [mailto:[EMAIL PROTECTED] Sent: Friday, July 06, 2007 10:51 To: David T. Ashley Cc: mysql@lists.mysql.com Subject: Re: zipcode to timezone On Fri, 6 Jul 2007, David T. Ashley wrote: > On 7/6/07, Hiep Nguyen <[EMAIL PROTECTED]> wrote: >> >> we have warehouses all

Re: zipcode to timezone

2007-07-06 Thread David T. Ashley
On 7/6/07, John Trammell <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Hiep Nguyen [mailto:[EMAIL PROTECTED] > Sent: Friday, July 06, 2007 10:51 AM > To: David T. Ashley > Cc: mysql@lists.mysql.com > Subject: Re: zipcode to timezone > > i don&#x

RE: zipcode to timezone

2007-07-06 Thread John Trammell
> -Original Message- > From: Hiep Nguyen [mailto:[EMAIL PROTECTED] > Sent: Friday, July 06, 2007 10:51 AM > To: David T. Ashley > Cc: mysql@lists.mysql.com > Subject: Re: zipcode to timezone > > i don't think there is any state got 2 timezones, i could be

RE: zipcode to timezone

2007-07-06 Thread Jerry Schwartz
w.the-infoshop.com www.giiexpress.com www.etudes-marche.com > -Original Message- > From: Hiep Nguyen [mailto:[EMAIL PROTECTED] > Sent: Friday, July 06, 2007 11:51 AM > To: David T. Ashley > Cc: mysql@lists.mysql.com > Subject: Re: zipcode to timezone > > On Fri, 6 Ju

Re: zipcode to timezone

2007-07-06 Thread Hiep Nguyen
On Fri, 6 Jul 2007, David T. Ashley wrote: On 7/6/07, Hiep Nguyen <[EMAIL PROTECTED]> wrote: we have warehouses all over U.S. and i just wonder what is the best way to find out their timezone base on zipcode. Should i buy a database or is there any function in mysql or php to get ti

Re: zipcode to timezone

2007-07-06 Thread Baron Schwartz
Hiep Nguyen wrote: Hi there, we have warehouses all over U.S. and i just wonder what is the best way to find out their timezone base on zipcode. Should i buy a database or is there any function in mysql or php to get timezone base on a zipcode? You may be able to call a web service from

Re: zipcode to timezone

2007-07-06 Thread David T. Ashley
On 7/6/07, Hiep Nguyen <[EMAIL PROTECTED]> wrote: we have warehouses all over U.S. and i just wonder what is the best way to find out their timezone base on zipcode. Should i buy a database or is there any function in mysql or php to get timezone base on a zipcode? I looked at the z

zipcode to timezone

2007-07-06 Thread Hiep Nguyen
Hi there, we have warehouses all over U.S. and i just wonder what is the best way to find out their timezone base on zipcode. Should i buy a database or is there any function in mysql or php to get timezone base on a zipcode? Thanks T. Hiep -- MySQL General Mailing List For list archives

Re: Mysql Timezone

2006-10-26 Thread Paul DuBois
At 11:45 +0300 10/21/06, Ahmad Al-Twaijiry wrote: Hi everyone is it possible in Mysql 5.0.1 to set the timezone for a user ? PS: I don't have root access to mysql, so I'm looking for away to do it as a normal user. Time zone support is described here: http://dev.mysql.com/doc/ref

Mysql Timezone

2006-10-21 Thread Ahmad Al-Twaijiry
Hi everyone is it possible in Mysql 5.0.1 to set the timezone for a user ? PS: I don't have root access to mysql, so I'm looking for away to do it as a normal user. --- Ahmad http://www.v-tadawul.com -- MySQL General Mailing List For list archives: http://lists.mysql.co

Re: mysql timezone problem

2006-03-28 Thread Dominik Klein
[EMAIL PROTECTED] schrieb: after changing my system timezone from UTC to MSD i have the following problem: after restarting mysql server its timezone has not changet at all: mysql> show variables like '%zone%'; +--++ | Variable_na

mysql timezone problem

2006-03-28 Thread averyanov
after changing my system timezone from UTC to MSD i have the following problem: after restarting mysql server its timezone has not changet at all: mysql> show variables like '%zone%'; +--++ | Variable_name| Value | +--++ | system_ti

[Fwd: Re: mysqld_safe and timezone settings]

2006-03-27 Thread Michael Sutter
The starting of the Server with the timezone settings works fine after setting the TZ variable. I always looked at the output from select @@global.time_zone. This was SYSTEM and so I beliefed the timezone wasn't set right on the server. Thanks and Regards Michael Thanks for the help,

Re: mysqld_safe and timezone settings

2006-03-27 Thread Michael Sutter
Thanks for the help, but this isn't my problem. When you start the server as shown below, the SYSTEM Timezone is used for the MySQL server. This could be seen when executing the query select @@global.time_zone on the server. Than you must get a SYSTEM in your data. The problem is th

Re: mysqld_safe and timezone settings

2006-03-26 Thread Dominik Klein
This was done as root and shows that TZ works. dk:/usr/local/mysql # bin/mysql -V bin/mysql Ver 14.12 Distrib 5.0.18, for pc-linux-gnu (i686) using readline 5.0 dk:/usr/local/mysql # echo $TZ dk:/usr/local/mysql # bin/mysqld_safe --user=mysql & [1] 802 dk:/usr/local/mysql # Starting mysqld da

Re: mysqld_safe and timezone settings

2006-03-25 Thread Sutter, Michael
Thanks for your help, but this is the problem I have. I can't specify the timezone right when I start mysql with mysqld_safe --user=mysql --timezone="America/Argentina/Mendoza" or by setting the TZ enviroment variable and than start the server. The timezone setting is ignored eve

Re: mysqld_safe and timezone settings

2006-03-24 Thread Dominik Klein
or what I although could do to start my Server in another than the SYSTEM timezone? I use the MySQL 5.0.18 Server on a Suse Linux 10.0 From: http://dev.mysql.com/doc/refman/5.0/en/timezone-problems.html You can set the time zone for the server with the --timezone=timezone_name option to

mysqld_safe and timezone settings

2006-03-23 Thread Michael Sutter
Hello everybody, I have a problem with replication of data from master to slave server. The problem is, that the master is in a other timezone than the slave and so inserts with using the now() function creates different values on master and slave. If I want to update on the master and use

Re: Timezone settings

2006-01-19 Thread Gleb Paharenko
Hello. See: http://dev.mysql.com/doc/refman/5.0/en/time-zone-support.html [EMAIL PROTECTED] wrote: > Dear Friends, > I need to do the timezone settings so that now() gives the system > time.Actually first i have installed mysql on a different timezone han > changed the system t

Timezone settings

2006-01-18 Thread [EMAIL PROTECTED]
Dear Friends, I need to do the timezone settings so that now() gives the system time.Actually first i have installed mysql on a different timezone han changed the system time zone but perhaps mysql shows the previous time zone or the default time zone only. Pl. tell me how to change that . I shall

Re: MySQL 4.1 timezone

2005-10-27 Thread Raphaël 'SurcouF' Bordet
Le jeudi 27 octobre 2005 à 01:12 +0300, Gleb Paharenko a écrit : > Hello. > > > > In mysql-5.0.15 it works. Put, say, default_time_zone='+10:00' in > > [mysqld] section of your file. This option works too under MySQL 4.1.11: [mysqld] default_time_zone=UTC mysql> SELECT @@global.time_zone, @@

Re: MySQL 4.1 timezone

2005-10-27 Thread Gleb Paharenko
Hello. In mysql-5.0.15 it works. Put, say, default_time_zone='+10:00' in [mysqld] section of your file. Raphaël 'SurcouF' Bordet wrote: > Hi, > > I want to set up a different timezone that my operating system for MySQL > upper to 4.1. According to

MySQL 4.1 timezone

2005-10-26 Thread Raphaël 'SurcouF' Bordet
Hi, I want to set up a different timezone that my operating system for MySQL upper to 4.1. According to this article[1], timezone system variable was changed since 4.1.3. I'm using mysql 4.1.11a from Debian sarge. I was tried to set system_time_zone into /etc/mysql/my.cnf unsuccessfully. The

RE: Timezone setting wrong?

2005-09-21 Thread Atle Veka
I use this in my.cnf (along with mysqld_multi settings fwiw) and it works great (mysql version 4.0.X): [mysqld_safe] timezone = GMT It depends on how you start up mysqld.. If you don't use mysqld_safe, the above wont work for you. Atle - Flying Crocodile Inc, Unix Systems Administ

RE: Timezone setting wrong?

2005-09-21 Thread Petr Chardin
> I've tried putting TZ = GMT and TZ = UTC into the my.cnf file but then > mysql won't even start. These should be set as environment variables, not as configuration options. You could also try setting time_zone system variable with set @@time_zone=GMT. Petr -- MySQL General Mailing List For l

RE: Timezone setting wrong?

2005-09-21 Thread Jeff McKeon
> -Original Message- > From: Jeff [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 21, 2005 08:55 > To: mysql@lists.mysql.com > Subject: Timezone setting wrong? > > > I've got a RHEL3 server I just installed with mysql 4.0.16. > > The hardware

Timezone setting wrong?

2005-09-21 Thread Jeff
n the new slave returns *** 120. row *** Variable_name: timezone Value: IST I'm sure I've missed something simple here but what? Thanks, Jeff -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysq

Re: Timezone query similiar to pgsql

2005-09-09 Thread Dan Nelson
it should be in the PHP layer which is not an option > for me. > My users come from various timezones, and so I plan to store everything > in GMT (server time) and select the time based on their timezone > preference which is stored in a user preference table. Start at http://dev.mysq

Timezone query similiar to pgsql

2005-09-09 Thread Terence
. My users come from various timezones, and so I plan to store everything in GMT (server time) and select the time based on their timezone preference which is stored in a user preference table. Suggestions always welcome :) Thanks Terence -- MySQL General Mailing List For list archives: http://l

Re: TimeZone

2005-08-08 Thread Jigal van Hemert
Joseph Cochran wrote: Some countries have multiple timezones, so it is not sufficient to know the country code in order to get the timezone. If they have previously posted the timezone, however, then it should be possible to store that information in a cookie on the client machine that your web

Re: TimeZone

2005-08-08 Thread Joseph Cochran
Some countries have multiple timezones, so it is not sufficient to know the country code in order to get the timezone. If they have previously posted the timezone, however, then it should be possible to store that information in a cookie on the client machine that your web layer can retrieve. If

TimeZone

2005-08-08 Thread KH
Hi, There is a request from mgmt, when user browse the request (web), the database will return the requested timestamp at their timezone that previously posted. How do i do that? Do I need store whole country codes together timezones in database mysql ? Is there any way to find full country

timezone questions

2005-02-15 Thread Elim Qiu
Dear list, I never tried any timezone features(options) of mysql and like to learn from you. (1) In what situation one need to set mysql timezone? (I know there are application level timezone solutions) (2) What the effect if a custome timezone is settled with mysql? I use mysql for web

Re: server timezone and system timezon

2004-09-27 Thread Eric Bergen
Have the location selecting adjust the timezone when it selects. Example select t + interval 6 hour from t -- Eric Bergen [EMAIL PROTECTED] On Mon, 27 Sep 2004 12:24:36 -0600, Elim Qiu <[EMAIL PROTECTED]> wrote: > Hi, I'm looking for help on timezone issues. > > I

server timezone and system timezon

2004-09-27 Thread Elim Qiu
Hi, I'm looking for help on timezone issues. I'm using mysql for a web application about time related events. I've two servers in different locations with different timezones. How to setup the database server so that the datetime value will not depend on the server machine's

Re: [Q] moving database to server in new timezone

2004-04-12 Thread Don Read
On 12-Apr-2004 Riaan Oberholzer wrote: > I'm, using mysqldump to dump a complete database on a > server in The Netherlands and want to load the > generated SQL onto a server in the USA to make an > exact copy of the database. > > However, I have Timestamp(14) fields that are dumped > as e.g. "200

[Q] moving database to server in new timezone

2004-04-12 Thread Riaan Oberholzer
I'm, using mysqldump to dump a complete database on a server in The Netherlands and want to load the generated SQL onto a server in the USA to make an exact copy of the database. However, I have Timestamp(14) fields that are dumped as e.g. "2004101015" local time and is read as local time too

Re: Setting the timezone

2003-10-13 Thread Paul DuBois
At 1:25 +0200 10/14/03, Mikhail Entaltsev wrote: Hi, Do you use version 4 or 3? I am using version 4.0.14. I thought that I need to use "set-variable = timezone = CST" for it to work under MySQL 3. MySQL docs: "...set-variable = variable=value This is equivalent to --set-va

Re: Setting the timezone

2003-10-13 Thread Mikhail Entaltsev
Hi, > Do you use version 4 or 3? I am using version 4.0.14. > I thought that I need to use > "set-variable = timezone = CST" for it to work under MySQL 3. MySQL docs: "...set-variable = variable=value This is equivalent to --set-variable variable=value on the comman

Re: Setting the timezone

2003-10-13 Thread Juan Antonio Ruiz Zwollo
Hi: Do you use version 4 or 3? I thought that I need to use "set-variable = timezone = CST" for it to work under MySQL 3. Also, does anybody know if "CST" is recognized? Or do I have to use GMT-6 or something like that? Thanks for your time and help. King reg

Re: Setting the timezone

2003-10-13 Thread Mikhail Entaltsev
Hi, I am using these lines in my.cnf at [mysqld_safe] section. [mysqld_safe] timezone = GMT It works fine for me. Best regards, Mikhail. - Original Message - From: "Juan Antonio Ruiz Zwollo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 13

Setting the timezone

2003-10-13 Thread Juan Antonio Ruiz Zwollo
Hi. I am trying to change the timezone for MySQL (version 3.23.56) but it does not seem to work. Currently the timezone is set to "MDT" (I think its the default for MySQL). I added the following line to /etc/my.cnf at the [mysqld] section: set-variable = timezone=CST But when I t

Does MySQL store TimeZone and DayLight Saving Time changes ?

2003-02-14 Thread Mariella Di Giacomo
program. Does MySQL store TimeZone and DayLight Saving Time changes ? Or does it have a way to find it once you have a field whose type is timestamp ? Thanks a lot in advance for your help, Patrick, Mariella - Before posting

Re: Timezone question

2002-06-10 Thread Kevin
> Yes. MySQL attempts to get the current time zone from the OS, but this can > be overridden by setting the TZ variable. (The manual suggests doing this in > the safe_mysqld script; there's already code in there for setting it from a > command line argument.) > > Valid settings of TZ are techni

Re: Timezone question

2002-06-10 Thread Egor Egorov
on what OS do you use. If you use *nix, it's possible. Run mysqld with --timezone option. If you use Windows you can only set up environment variable. K> --Kevin K> [EMAIL PROTECTED] -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is

Re: Timezone question

2002-06-10 Thread Rob
Yes. MySQL attempts to get the current time zone from the OS, but this can be overridden by setting the TZ variable. (The manual suggests doing this in the safe_mysqld script; there's already code in there for setting it from a command line argument.) Valid settings of TZ are technically not "tim

Timezone question

2002-06-10 Thread Kevin
Hello, I am using the now() function to insert the current timestamp in a mysql table. My problem is that the server is using EST while I would like the time to reflect PST. Can this be done? Thanks. --Kevin [EMAIL PROTECTED]

Re[4]: client dependent timezone

2002-03-29 Thread Maxim Vysotskiy
ch 29, 2002, 1:16:03 PM, you wrote: DN> Hello Maxim, DN> There's a bit of confusion in this discussion: Do you (a) want to have DN> several databases running on the db-server, and all set to different DN> time zones, or (b) want each client to see db-stored times stated in DN>

Re: Re[2]: client dependent timezone

2002-03-29 Thread DL Neil
Hello Maxim, There's a bit of confusion in this discussion: Do you (a) want to have several databases running on the db-server, and all set to different time zones, or (b) want each client to see db-stored times stated in his/her local timezone? (a) AFAIK (and I claim no special expertise

Re: Re[2]: client dependent timezone

2002-03-28 Thread Gerald R. Jensen
Depends on the language you are writing in, and the level of your programming skills. If your users/guests have database entries, it would be a rather trivial task to set their timezone in a column in the database, then write your app to calculate their local time based on the offset from GMT

Re[2]: client dependent timezone

2002-03-28 Thread Maxim Vysotskiy
contains ~2 lines of code, and somewhere near to 1000 queries). If someone knows how to play this around - please help! Friday, March 29, 2002, 3:02:57 AM, you wrote: GRJ> Per client? Per database? The only timezone setting in the MySQL manual is GRJ> for the server (tz), and permits you to

Re[2]: client dependent timezone

2002-03-28 Thread Maxim Vysotskiy
contains ~2 lines of code, and somewhere near to 1000 queries). If someone knows how to play this around - please help! Friday, March 29, 2002, 3:02:57 AM, you wrote: GRJ> Per client? Per database? The only timezone setting in the MySQL manual is GRJ> for the server (tz), and permits you to

Re: client dependent timezone

2002-03-28 Thread Gerald R. Jensen
Per client? Per database? The only timezone setting in the MySQL manual is for the server (tz), and permits you to set it to your local timezone so it does not return values in GMT. If you want clients to have different timezones, perhaps you should write that capabilty into your front-end

client dependent timezone

2002-03-28 Thread Maxim Vysotskiy
Hello mysql, So nobody here (even at MySQL AB) knows how to set a timezone for a MySQL client ? Not for whole server but per client? (or maybe for database???) I already posted this question here few days ago - and didn't get any reply. Please! Somebody help! -- Best regards,

unix_timesamp function out by a day when using a different timezone

2002-03-27 Thread Dominic Gamble
>Description: After setting the TZ environment variable to a different timezone, then using the UNIX_TIMESTAMP(...) function on a mysql timestamp string brings back the correct time, but a date that is a day out, but only for certain dates. It seems that the date becomes the original date p

MySQL client timezone

2002-03-26 Thread Maxim Vysotskiy
Hello 'mysql, Does anybody know is this possible to set some particular timezone for the session? ie: server is in GMT, but application needs time selected in GMT+3 Is there any universal way ? Thanx for any hint in advance -- Best regards, Maxim mailto:[

Please Help: 2 (Easy?) Timezone (TZ) Questions

2002-02-13 Thread Amandeep Jawa
Hi folks - I am still having 2 related problems with the timezone setting for mysqld & was hoping to get some help. Basically my squestions are as follows: a) the documentation says to set timezone by simply using --timezone=# when starting mysqld - but WHAT are the valid number values &am

Please Help: 2 (Easy?) Timezone (TZ) Questions

2002-02-07 Thread Amandeep Jawa
Hi folks - I am still having 2 related problems with the timezone setting for mysqld & was hoping to get some help. Basically my squestions are as follows: a) the documentation says to set timezone by simply using --timezone=# when starting mysqld - but WHAT are the valid number values &am

2 (Easy?) Timezone (TZ) Questions

2002-02-04 Thread Amandeep Jawa
Hi folks - I am having 2 related problems with the timezone setting for mysqld & was hoping to get some help. Basically my squestions are as follows: a) the documentation says to set timezone by simply using --timezone=# when starting mysqld - but WHAT are the valid number values & wh

Re: Timezone offset question

2001-11-13 Thread DL Neil
> >Start the server with the desired TZ set. > > That's all fine and good, but difficult switch back and forth every 10 > minutes while that query runs for local data, then for the remote data. =Agreed you must stick with either one or the other, right? =Wrong! To fix the problem of different of

Re: Timezone offset question

2001-11-13 Thread Bill Adams
y I deal with it (and I don't know that it will help you) is that I store datetime as an integer from time() GMT. Then in the report I convert the time to the correct timezone based on the user's IP (internal network, different subnets for different TZ/locations). Of course this is a bad

Re: Timezone offset question

2001-11-13 Thread Jeremy Wilson
At 01:07 PM 11/13/01 -0600, Gerald Clark wrote: >Start the server with the desired TZ set. That's all fine and good, but difficult switch back and forth every 10 minutes while that query runs for local data, then for the remote data. -

Re: Timezone offset question

2001-11-13 Thread Gerald Clark
Start the server with the desired TZ set. Jeremy Wilson wrote: > I have a data collection script which rolls raw data into a formatted > table, based on year/month/day. I've been requested to roll up this raw > data based on a different timezone - 3 hours behind - to better c

Timezone offset question

2001-11-13 Thread Jeremy Wilson
I have a data collection script which rolls raw data into a formatted table, based on year/month/day. I've been requested to roll up this raw data based on a different timezone - 3 hours behind - to better coincide with reports from a company in that timezone. This is the rollup SQL que

Re: Timezone problem.

2001-08-09 Thread Timothy Smith
> > The small problem in mysql is it does not check if parameter is > > correct in configure script - this produced the problem... > > Peter mailto:[EMAIL PROTECTED] Yes, I don't know of any clear way of handling this with autoconf. Basically, if your option starts wi

Re: Timezone problem.

2001-08-08 Thread Heikki Tuuri
Ok :) the problem solved. It was a wrong glibc after all. Regards, Heikki At 01:07 PM 8/8/01 +0400, you wrote: >Hello Heikki, > > Sorry for confuse. The problem is The first complied binary I've > checked which was fine was complied with --with-other-glibc=XXX > therefore the correct option

Re: Timezone problem.

2001-08-08 Thread Sinisa Milivojevic
Peter Zaitsev writes: > Hello Michael, > > Tuesday, August 07, 2001, 10:20:18 PM, you wrote: > > The question is which place do you do aply timezone ? > > I found the following interesting thing: Then mysql is started it uses > correct timestamp, therefore INNO

Re: Timezone problem.

2001-08-07 Thread Sasha Pachev
On Tuesday 07 August 2001 09:10, Heikki Tuuri wrote: > Hi! > > No idea what is wrong. Below is the code which > prints the timestamp in InnoDB: > . > > struct tm cal_tm; > struct tm* cal_tm_ptr; > time_t tm; > > time(&tm); > > #ifdef HAVE_LOCALTIME_R > localtime_

  1   2   >