Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 05:53 AM
Causevic, Dzenan
 
Posts: n/a
Default FW: Does MySQL require patch for Daylight Savings Time 2007 change

Okay but after I patch OS do I still need to load time zone tables with
following command:

shell> mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql

Is this still necessary?

_______________________________
Dzenan Causevic
Web Applications Developer
NaviSite, Inc.
315-453-2912 x5346 (Office)
315-278-7371 (Cell)
www.NaviSite.com


-----Original Message-----
From: J.R. Bullington [mailto:bullijr@innovatim.com]
Sent: Wednesday, February 28, 2007 9:40 AM
To: mysql@lists.mysql.com
Subject: re: Does MySQL require patch for Daylight Savings Time 2007
change


As far as I know, MySQL does not need a TZ patch (unless
you use specific/custom Time Zone information), but your OS does.

The best way to check is to run:

mysql> SHOW VARIABLES LIKE 'TIME_ZONE';

If it says SYSTEM, then you need only patch your OS. (Patching the OS is
[OT] for this list).

Here's the section from the manual in regards to 3.23 Time Zones.

http://dev.mysql.com/doc/refman/4.1/...e-support.html

J.R.

----------------------------------------

From: "Causevic, Dzenan"
<dcausevic@navisite.com>
Sent: Wednesday, February 28, 2007 9:29 AM
To: mysql@lists.mysql.com
Subject: Does MySQL require patch for Daylight Savings Time 2007 change

I am running Apache HTTP 1.3 with PHP 4.2.2 and MySQL 3.23.

Do I need to apply any kind of patches to my MySQL related to Daylight
Savings Time 2007 change?

_______________________________

Dzenan Causevic

Web Applications Developer

NaviSite, Inc.

315-453-2912 x5346 (Office)

315-278-7371 (Cell)

www.NaviSite.com

This e-mail is the property of NaviSite, Inc. It is intended only
for the person or entity to which it is addressed and may contain
information that is privileged, confidential, or otherwise protected
from disclosure. Distribution or copying of this e-mail, or the
information contained herein, to anyone other than the intended
recipient is prohibited.



This e-mail is the property of NaviSite, Inc. It is intended only
for the person or entity to which it is addressed and may contain
information that is privileged, confidential, or otherwise protected
from disclosure. Distribution or copying of this e-mail, or the
information contained herein, to anyone other than the intended
recipient is prohibited.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 05:53 AM
Jean-Sebastien Pilon
 
Posts: n/a
Default RE: Does MySQL require patch for Daylight Savings Time 2007 change

I don't believe so, since the version of MySQL you are using relies on
the system's time. I am using 4.1 and I am setup to use system's time
and my timezone tables in the mysql schema are empty. I would take a
look at those on your installation. You can also run the 2nd command
below to see if the system returns proper time, both unix timestamp
should be equal...

mysql> SHOW VARIABLES LIKE 'time_zone';
+---------------+--------+
| Variable_name | Value |
+---------------+--------+
| time_zone | SYSTEM |
+---------------+--------+
1 row in set (0.00 sec)


mysql> SELECT UNIX_TIMESTAMP('2007-03-11
01:00:00'),UNIX_TIMESTAMP('2007-03-11 02:00:00');
+---------------------------------------+-------------------------------
--------+
| UNIX_TIMESTAMP('2007-03-11 01:00:00') | UNIX_TIMESTAMP('2007-03-11
02:00:00') |
+---------------------------------------+-------------------------------
--------+
| 1173592800 |
1173596400 |
+---------------------------------------+-------------------------------
--------+
1 row in set (0.00 sec)

mysql> SELECT UNIX_TIMESTAMP('2007-03-11
02:00:00'),UNIX_TIMESTAMP('2007-03-11 03:00:00');
+---------------------------------------+-------------------------------
--------+
| UNIX_TIMESTAMP('2007-03-11 02:00:00') | UNIX_TIMESTAMP('2007-03-11
03:00:00') |
+---------------------------------------+-------------------------------
--------+
| 1173596400 |
1173596400 |
+---------------------------------------+-------------------------------
--------+
1 row in set (0.00 sec)


> -----Original Message-----
> From: Causevic, Dzenan [mailto:dcausevic@navisite.com]
> Sent: Wednesday, February 28, 2007 10:22 AM
> To: mysql@lists.mysql.com
> Subject: FW: Does MySQL require patch for Daylight Savings
> Time 2007 change
>
> Okay but after I patch OS do I still need to load time zone
> tables with
> following command:
>
> shell> mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
>
> Is this still necessary?
>
> _______________________________
> Dzenan Causevic
> Web Applications Developer
> NaviSite, Inc.
> 315-453-2912 x5346 (Office)
> 315-278-7371 (Cell)
> www.NaviSite.com
>
>
> -----Original Message-----
> From: J.R. Bullington [mailto:bullijr@innovatim.com]
> Sent: Wednesday, February 28, 2007 9:40 AM
> To: mysql@lists.mysql.com
> Subject: re: Does MySQL require patch for Daylight Savings Time 2007
> change
>
>
> As far as I know, MySQL does not need a TZ patch (unless
> you use specific/custom Time Zone information), but your OS does.
>
> The best way to check is to run:
>
> mysql> SHOW VARIABLES LIKE 'TIME_ZONE';
>
> If it says SYSTEM, then you need only patch your OS.
> (Patching the OS is
> [OT] for this list).
>
> Here's the section from the manual in regards to 3.23 Time Zones.
>
> http://dev.mysql.com/doc/refman/4.1/...e-support.html
>
> J.R.
>

NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.

AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et n’est destiné qu'à la personne à qui il est adressé. Si vous n’êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite.* Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l’expéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt d’erreur puisque les informations qu’il contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus. *
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 05:53 AM
Jerry Schwartz
 
Posts: n/a
Default RE: Does MySQL require patch for Daylight Savings Time 2007 change

Hang on a second! Doesn't EST transition to DST at 03:00? Shouldn't that
query (the one for testing MySQL's time zones) be

SELECT UNIX_TIMESTAMP('2007-03-11 02:00:00'),UNIX_TIMESTAMP('2007-03-11
03:00:00');

? Nonetheless, it doesn't work for me. I get a one-hour difference, just as
though the DST transition never existed. My time_zone variable is set to
SYSTEM, and I've verified using zdump (Linux) that the time zone tables on
my server are correct. I have loaded the latest time zone information using

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql

although it gave me some errors about Riyadh.

Regards,

Jerry Schwartz
Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341


> -----Original Message-----
> From: Jean-Sebastien Pilon [mailto:jspilon@PENSON.CA]
> Sent: Wednesday, February 28, 2007 10:55 AM
> To: Causevic, Dzenan; mysql@lists.mysql.com
> Subject: RE: Does MySQL require patch for Daylight Savings
> Time 2007 change
>
> I don't believe so, since the version of MySQL you are using relies on
> the system's time. I am using 4.1 and I am setup to use system's time
> and my timezone tables in the mysql schema are empty. I would take a
> look at those on your installation. You can also run the 2nd command
> below to see if the system returns proper time, both unix timestamp
> should be equal...
>
> mysql> SHOW VARIABLES LIKE 'time_zone';
> +---------------+--------+
> | Variable_name | Value |
> +---------------+--------+
> | time_zone | SYSTEM |
> +---------------+--------+
> 1 row in set (0.00 sec)
>
>
> mysql> SELECT UNIX_TIMESTAMP('2007-03-11
> 01:00:00'),UNIX_TIMESTAMP('2007-03-11 02:00:00');
> +---------------------------------------+---------------------
> ----------
> --------+
> | UNIX_TIMESTAMP('2007-03-11 01:00:00') | UNIX_TIMESTAMP('2007-03-11
> 02:00:00') |
> +---------------------------------------+---------------------
> ----------
> --------+
> | 1173592800 |
> 1173596400 |
> +---------------------------------------+---------------------
> ----------
> --------+
> 1 row in set (0.00 sec)
>
> mysql> SELECT UNIX_TIMESTAMP('2007-03-11
> 02:00:00'),UNIX_TIMESTAMP('2007-03-11 03:00:00');
> +---------------------------------------+---------------------
> ----------
> --------+
> | UNIX_TIMESTAMP('2007-03-11 02:00:00') | UNIX_TIMESTAMP('2007-03-11
> 03:00:00') |
> +---------------------------------------+---------------------
> ----------
> --------+
> | 1173596400 |
> 1173596400 |
> +---------------------------------------+---------------------
> ----------
> --------+
> 1 row in set (0.00 sec)
>
>
> > -----Original Message-----
> > From: Causevic, Dzenan [mailto:dcausevic@navisite.com]
> > Sent: Wednesday, February 28, 2007 10:22 AM
> > To: mysql@lists.mysql.com
> > Subject: FW: Does MySQL require patch for Daylight Savings
> > Time 2007 change
> >
> > Okay but after I patch OS do I still need to load time zone
> > tables with
> > following command:
> >
> > shell> mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
> >
> > Is this still necessary?
> >
> > _______________________________
> > Dzenan Causevic
> > Web Applications Developer
> > NaviSite, Inc.
> > 315-453-2912 x5346 (Office)
> > 315-278-7371 (Cell)
> > www.NaviSite.com
> >
> >
> > -----Original Message-----
> > From: J.R. Bullington [mailto:bullijr@innovatim.com]
> > Sent: Wednesday, February 28, 2007 9:40 AM
> > To: mysql@lists.mysql.com
> > Subject: re: Does MySQL require patch for Daylight Savings Time 2007
> > change
> >
> >
> > As far as I know, MySQL does not need a TZ patch (unless
> > you use specific/custom Time Zone information), but your OS does.
> >
> > The best way to check is to run:
> >
> > mysql> SHOW VARIABLES LIKE 'TIME_ZONE';
> >
> > If it says SYSTEM, then you need only patch your OS.
> > (Patching the OS is
> > [OT] for this list).
> >
> > Here's the section from the manual in regards to 3.23 Time Zones.
> >
> > http://dev.mysql.com/doc/refman/4.1/...e-support.html
> >
> > J.R.
> >

> NOTICE: This email contains privileged and confidential
> information and is intended only for the individual to whom
> it is addressed. If you are not the named addressee, you
> should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have
> received this transmission by mistake and delete this
> communication from your system. E-mail transmission cannot be
> guaranteed to be secured or error-free as information could
> be intercepted, corrupted, lost, destroyed, arrive late or
> incomplete, or contain viruses.
>
> AVIS: Le prisent courriel contient des renseignements de
> nature priviligiie et confidentielle et nest destini qu'` la
> personne ` qui il est adressi. Si vous njtes pas le
> destinataire privu, vous jtes par les prisentes avisis que
> toute diffusion, distribution ou reproduction de cette
> communication est strictement interdite. Si vous avez regu
> ce courriel par erreur, veuillez en aviser immidiatement
> lexpiditeur et le supprimer de votre systhme. Notez que la
> transmission de courriel ne peut en aucun cas jtre considiri
> comme inviolable ou exempt derreur puisque les informations
> quil contient pourraient jtre interceptis, corrompues,
> perdues, ditruites, arrivies en retard ou incomplhtes ou
> contenir un virus.
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:
> http://lists.mysql.com/mysql?unsub=j...e-infoshop.com
>
>




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 05:53 AM
Jean-Sebastien Pilon
 
Posts: n/a
Default RE: Does MySQL require patch for Daylight Savings Time 2007 change

You have both compare 0100 vs 0200 and 0200 vs 0300 in my reply... It wasn't clear because of emails being wrapped at 80 chars.

And it still doesn't work after loading the tables with mysql_tzinfo_to_sql

And /etc/localtime is a symlink to the proper tz file ?

Jean-Sébastien Pilon
Systems Administrator
Penson Financial Services Canada Inc.
% Tel.: 514.841.9724 #269
% Cell: 514.771.0365

> -----Original Message-----
> From: Jerry Schwartz [mailto:jschwartz@the-infoshop.com]
> Sent: Wednesday, February 28, 2007 12:13 PM
> To: Jean-Sebastien Pilon; 'Causevic, Dzenan'; mysql@lists.mysql.com
> Subject: RE: Does MySQL require patch for Daylight Savings
> Time 2007 change
>
> Hang on a second! Doesn't EST transition to DST at 03:00?
> Shouldn't that
> query (the one for testing MySQL's time zones) be
>
> SELECT UNIX_TIMESTAMP('2007-03-11
> 02:00:00'),UNIX_TIMESTAMP('2007-03-11
> 03:00:00');
>
> ? Nonetheless, it doesn't work for me. I get a one-hour
> difference, just as
> though the DST transition never existed. My time_zone
> variable is set to
> SYSTEM, and I've verified using zdump (Linux) that the time
> zone tables on
> my server are correct. I have loaded the latest time zone
> information using
>
> mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
>
> although it gave me some errors about Riyadh.
>
> Regards,
>
> Jerry Schwartz
> Global Information Incorporated
> 195 Farmington Ave.
> Farmington, CT 06032
>
> 860.674.8796 / FAX: 860.674.8341
>
>
> > -----Original Message-----
> > From: Jean-Sebastien Pilon [mailto:jspilon@PENSON.CA]
> > Sent: Wednesday, February 28, 2007 10:55 AM
> > To: Causevic, Dzenan; mysql@lists.mysql.com
> > Subject: RE: Does MySQL require patch for Daylight Savings
> > Time 2007 change
> >
> > I don't believe so, since the version of MySQL you are

> using relies on
> > the system's time. I am using 4.1 and I am setup to use

> system's time
> > and my timezone tables in the mysql schema are empty. I would take a
> > look at those on your installation. You can also run the 2nd command
> > below to see if the system returns proper time, both unix timestamp
> > should be equal...
> >
> > mysql> SHOW VARIABLES LIKE 'time_zone';
> > +---------------+--------+
> > | Variable_name | Value |
> > +---------------+--------+
> > | time_zone | SYSTEM |
> > +---------------+--------+
> > 1 row in set (0.00 sec)
> >
> >
> > mysql> SELECT UNIX_TIMESTAMP('2007-03-11
> > 01:00:00'),UNIX_TIMESTAMP('2007-03-11 02:00:00');
> > +---------------------------------------+---------------------
> > ----------
> > --------+
> > | UNIX_TIMESTAMP('2007-03-11 01:00:00') | UNIX_TIMESTAMP('2007-03-11
> > 02:00:00') |
> > +---------------------------------------+---------------------
> > ----------
> > --------+
> > | 1173592800 |
> > 1173596400 |
> > +---------------------------------------+---------------------
> > ----------
> > --------+
> > 1 row in set (0.00 sec)
> >
> > mysql> SELECT UNIX_TIMESTAMP('2007-03-11
> > 02:00:00'),UNIX_TIMESTAMP('2007-03-11 03:00:00');
> > +---------------------------------------+---------------------
> > ----------
> > --------+
> > | UNIX_TIMESTAMP('2007-03-11 02:00:00') | UNIX_TIMESTAMP('2007-03-11
> > 03:00:00') |
> > +---------------------------------------+---------------------
> > ----------
> > --------+
> > | 1173596400 |
> > 1173596400 |
> > +---------------------------------------+---------------------
> > ----------
> > --------+
> > 1 row in set (0.00 sec)
> >
> >
> > > -----Original Message-----
> > > From: Causevic, Dzenan [mailto:dcausevic@navisite.com]
> > > Sent: Wednesday, February 28, 2007 10:22 AM
> > > To: mysql@lists.mysql.com
> > > Subject: FW: Does MySQL require patch for Daylight Savings
> > > Time 2007 change
> > >
> > > Okay but after I patch OS do I still need to load time zone
> > > tables with
> > > following command:
> > >
> > > shell> mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u

> root mysql
> > >
> > > Is this still necessary?
> > >
> > > _______________________________
> > > Dzenan Causevic
> > > Web Applications Developer
> > > NaviSite, Inc.
> > > 315-453-2912 x5346 (Office)
> > > 315-278-7371 (Cell)
> > > www.NaviSite.com
> > >
> > >
> > > -----Original Message-----
> > > From: J.R. Bullington [mailto:bullijr@innovatim.com]
> > > Sent: Wednesday, February 28, 2007 9:40 AM
> > > To: mysql@lists.mysql.com
> > > Subject: re: Does MySQL require patch for Daylight

> Savings Time 2007
> > > change
> > >
> > >
> > > As far as I know, MySQL does not need a TZ patch (unless
> > > you use specific/custom Time Zone information), but your OS does.
> > >
> > > The best way to check is to run:
> > >
> > > mysql> SHOW VARIABLES LIKE 'TIME_ZONE';
> > >
> > > If it says SYSTEM, then you need only patch your OS.
> > > (Patching the OS is
> > > [OT] for this list).
> > >
> > > Here's the section from the manual in regards to 3.23 Time Zones.
> > >
> > > http://dev.mysql.com/doc/refman/4.1/...e-support.html
> > >
> > > J.R.
> > >

> > NOTICE: This email contains privileged and confidential
> > information and is intended only for the individual to whom
> > it is addressed. If you are not the named addressee, you
> > should not disseminate, distribute or copy this e-mail.
> > Please notify the sender immediately by e-mail if you have
> > received this transmission by mistake and delete this
> > communication from your system. E-mail transmission cannot be
> > guaranteed to be secured or error-free as information could
> > be intercepted, corrupted, lost, destroyed, arrive late or
> > incomplete, or contain viruses.
> >
> > AVIS: Le prisent courriel contient des renseignements de
> > nature priviligiie et confidentielle et nest destini qu'` la
> > personne ` qui il est adressi. Si vous njtes pas le
> > destinataire privu, vous jtes par les prisentes avisis que
> > toute diffusion, distribution ou reproduction de cette
> > communication est strictement interdite. Si vous avez regu
> > ce courriel par erreur, veuillez en aviser immidiatement
> > lexpiditeur et le supprimer de votre systhme. Notez que la
> > transmission de courriel ne peut en aucun cas jtre considiri
> > comme inviolable ou exempt derreur puisque les informations
> > quil contient pourraient jtre interceptis, corrompues,
> > perdues, ditruites, arrivies en retard ou incomplhtes ou
> > contenir un virus.
> >
> > --
> > MySQL General Mailing List
> > For list archives: http://lists.mysql.com/mysql
> > To unsubscribe:
> > http://lists.mysql.com/mysql?unsub=j...e-infoshop.com
> >
> >

>
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 05:53 AM
Jerry Schwartz
 
Posts: n/a
Default RE: Does MySQL require patch for Daylight Savings Time 2007 change

As for me, /etc/localtime -> /usr/share/zoneinfo/EST5DST

Which should be correct for my system as I am located in that time zone. I
don't understand why MySQL doesn't give the same UNIX_TIMESTAMP for
"2007-03-11 02:00:00" and "2007-03-11 03:00:00". Just to make sure, I tried
it with one minute earlier and one minute later and got the same results.

Regards,

Jerry Schwartz
Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341


> -----Original Message-----
> From: Jean-Sebastien Pilon [mailto:jspilon@PENSON.CA]
> Sent: Wednesday, February 28, 2007 12:53 PM
> To: mysql@lists.mysql.com
> Subject: RE: Does MySQL require patch for Daylight Savings
> Time 2007 change
>
> You have both compare 0100 vs 0200 and 0200 vs 0300 in my
> reply... It wasn't clear because of emails being wrapped at 80 chars.
>
> And it still doesn't work after loading the tables with
> mysql_tzinfo_to_sql
>
> And /etc/localtime is a symlink to the proper tz file ?
>
> Jean-Sébastien Pilon
> Systems Administrator
> Penson Financial Services Canada Inc.
> % Tel.: 514.841.9724 #269
> % Cell: 514.771.0365
>
> > -----Original Message-----
> > From: Jerry Schwartz [mailto:jschwartz@the-infoshop.com]
> > Sent: Wednesday, February 28, 2007 12:13 PM
> > To: Jean-Sebastien Pilon; 'Causevic, Dzenan'; mysql@lists.mysql.com
> > Subject: RE: Does MySQL require patch for Daylight Savings
> > Time 2007 change
> >
> > Hang on a second! Doesn't EST transition to DST at 03:00?
> > Shouldn't that
> > query (the one for testing MySQL's time zones) be
> >
> > SELECT UNIX_TIMESTAMP('2007-03-11
> > 02:00:00'),UNIX_TIMESTAMP('2007-03-11
> > 03:00:00');
> >
> > ? Nonetheless, it doesn't work for me. I get a one-hour
> > difference, just as
> > though the DST transition never existed. My time_zone
> > variable is set to
> > SYSTEM, and I've verified using zdump (Linux) that the time
> > zone tables on
> > my server are correct. I have loaded the latest time zone
> > information using
> >
> > mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
> >
> > although it gave me some errors about Riyadh.
> >
> > Regards,
> >
> > Jerry Schwartz
> > Global Information Incorporated
> > 195 Farmington Ave.
> > Farmington, CT 06032
> >
> > 860.674.8796 / FAX: 860.674.8341
> >
> >
> > > -----Original Message-----
> > > From: Jean-Sebastien Pilon [mailto:jspilon@PENSON.CA]
> > > Sent: Wednesday, February 28, 2007 10:55 AM
> > > To: Causevic, Dzenan; mysql@lists.mysql.com
> > > Subject: RE: Does MySQL require patch for Daylight Savings
> > > Time 2007 change
> > >
> > > I don't believe so, since the version of MySQL you are

> > using relies on
> > > the system's time. I am using 4.1 and I am setup to use

> > system's time
> > > and my timezone tables in the mysql schema are empty. I

> would take a
> > > look at those on your installation. You can also run the

> 2nd command
> > > below to see if the system returns proper time, both unix

> timestamp
> > > should be equal...
> > >
> > > mysql> SHOW VARIABLES LIKE 'time_zone';
> > > +---------------+--------+
> > > | Variable_name | Value |
> > > +---------------+--------+
> > > | time_zone | SYSTEM |
> > > +---------------+--------+
> > > 1 row in set (0.00 sec)
> > >
> > >
> > > mysql> SELECT UNIX_TIMESTAMP('2007-03-11
> > > 01:00:00'),UNIX_TIMESTAMP('2007-03-11 02:00:00');
> > > +---------------------------------------+---------------------
> > > ----------
> > > --------+
> > > | UNIX_TIMESTAMP('2007-03-11 01:00:00') |

> UNIX_TIMESTAMP('2007-03-11
> > > 02:00:00') |
> > > +---------------------------------------+---------------------
> > > ----------
> > > --------+
> > > | 1173592800 |
> > > 1173596400 |
> > > +---------------------------------------+---------------------
> > > ----------
> > > --------+
> > > 1 row in set (0.00 sec)
> > >
> > > mysql> SELECT UNIX_TIMESTAMP('2007-03-11
> > > 02:00:00'),UNIX_TIMESTAMP('2007-03-11 03:00:00');
> > > +---------------------------------------+---------------------
> > > ----------
> > > --------+
> > > | UNIX_TIMESTAMP('2007-03-11 02:00:00') |

> UNIX_TIMESTAMP('2007-03-11
> > > 03:00:00') |
> > > +---------------------------------------+---------------------
> > > ----------
> > > --------+
> > > | 1173596400 |
> > > 1173596400 |
> > > +---------------------------------------+---------------------
> > > ----------
> > > --------+
> > > 1 row in set (0.00 sec)
> > >
> > >
> > > > -----Original Message-----
> > > > From: Causevic, Dzenan [mailto:dcausevic@navisite.com]
> > > > Sent: Wednesday, February 28, 2007 10:22 AM
> > > > To: mysql@lists.mysql.com
> > > > Subject: FW: Does MySQL require patch for Daylight Savings
> > > > Time 2007 change
> > > >
> > > > Okay but after I patch OS do I still need to load time zone
> > > > tables with
> > > > following command:
> > > >
> > > > shell> mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u

> > root mysql
> > > >
> > > > Is this still necessary?
> > > >
> > > > _______________________________
> > > > Dzenan Causevic
> > > > Web Applications Developer
> > > > NaviSite, Inc.
> > > > 315-453-2912 x5346 (Office)
> > > > 315-278-7371 (Cell)
> > > > www.NaviSite.com
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: J.R. Bullington [mailto:bullijr@innovatim.com]
> > > > Sent: Wednesday, February 28, 2007 9:40 AM
> > > > To: mysql@lists.mysql.com
> > > > Subject: re: Does MySQL require patch for Daylight

> > Savings Time 2007
> > > > change
> > > >
> > > >
> > > > As far as I know, MySQL does not need a

> TZ patch (unless
> > > > you use specific/custom Time Zone information), but

> your OS does.
> > > >
> > > > The best way to check is to run:
> > > >
> > > > mysql> SHOW VARIABLES LIKE 'TIME_ZONE';
> > > >
> > > > If it says SYSTEM, then you need only patch your OS.
> > > > (Patching the OS is
> > > > [OT] for this list).
> > > >
> > > > Here's the section from the manual in regards to 3.23

> Time Zones.
> > > >
> > > > http://dev.mysql.com/doc/refman/4.1/...e-support.html
> > > >
> > > > J.R.
> > > >
> > > NOTICE: This email contains privileged and confidential
> > > information and is intended only for the individual to whom
> > > it is addressed. If you are not the named addressee, you
> > > should not disseminate, distribute or copy this e-mail.
> > > Please notify the sender immediately by e-mail if you have
> > > received this transmission by mistake and delete this
> > > communication from your system. E-mail transmission cannot be
> > > guaranteed to be secured or error-free as information could
> > > be intercepted, corrupted, lost, destroyed, arrive late or
> > > incomplete, or contain viruses.
> > >
> > > AVIS: Le prisent courriel contient des renseignements de
> > > nature priviligiie et confidentielle et nest destini qu'` la
> > > personne ` qui il est adressi. Si vous njtes pas le
> > > destinataire privu, vous jtes par les prisentes avisis que
> > > toute diffusion, distribution ou reproduction de cette
> > > communication est strictement interdite. Si vous avez regu
> > > ce courriel par erreur, veuillez en aviser immidiatement
> > > lexpiditeur et le supprimer de votre systhme. Notez que la
> > > transmission de courriel ne peut en aucun cas jtre considiri
> > > comme inviolable ou exempt derreur puisque les informations
> > > quil contient pourraient jtre interceptis, corrompues,
> > > perdues, ditruites, arrivies en retard ou incomplhtes ou
> > > contenir un virus.
> > >
> > > --
> > > MySQL General Mailing List
> > > For list archives: http://lists.mysql.com/mysql
> > > To unsubscribe:
> > > http://lists.mysql.com/mysql?unsub=j...e-infoshop.com
> > >
> > >

> >
> >
> >
> >

>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:
> http://lists.mysql.com/mysql?unsub=j...e-infoshop.com
>
>




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-28-2008, 05:53 AM
Jean-Sebastien Pilon
 
Posts: n/a
Default RE: Does MySQL require patch for Daylight Savings Time 2007 change

You ran your zdump -v against this file ?


> -----Original Message-----
> From: Jerry Schwartz [mailto:jschwartz@the-infoshop.com]
> Sent: Wednesday, February 28, 2007 1:41 PM
> To: Jean-Sebastien Pilon; mysql@lists.mysql.com
> Subject: RE: Does MySQL require patch for Daylight Savings
> Time 2007 change
>
> As for me, /etc/localtime -> /usr/share/zoneinfo/EST5DST
>
> Which should be correct for my system as I am located in that
> time zone. I
> don't understand why MySQL doesn't give the same UNIX_TIMESTAMP for
> "2007-03-11 02:00:00" and "2007-03-11 03:00:00". Just to make
> sure, I tried
> it with one minute earlier and one minute later and got the
> same results.
>
> Regards,
>
> Jerry Schwartz
> Global Information Incorporated
> 195 Farmington Ave.
> Farmington, CT 06032
>
> 860.674.8796 / FAX: 860.674.8341
>
>
> > -----Original Message-----
> > From: Jean-Sebastien Pilon [mailto:jspilon@PENSON.CA]
> > Sent: Wednesday, February 28, 2007 12:53 PM
> > To: mysql@lists.mysql.com
> > Subject: RE: Does MySQL require patch for Daylight Savings
> > Time 2007 change
> >
> > You have both compare 0100 vs 0200 and 0200 vs 0300 in my
> > reply... It wasn't clear because of emails being wrapped at

> 80 chars.
> >
> > And it still doesn't work after loading the tables with
> > mysql_tzinfo_to_sql
> >
> > And /etc/localtime is a symlink to the proper tz file ?
> >
> > Jean-Sébastien Pilon
> > Systems Administrator
> > Penson Financial Services Canada Inc.
> > % Tel.: 514.841.9724 #269
> > % Cell: 514.771.0365

NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.

AVIS: Le présent courriel contient des renseignements de nature privilégiée et confidentielle et n’est destiné qu'à la personne à qui il est adressé. Si vous n’êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite.* Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l’expéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt d’erreur puisque les informations qu’il contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus. *
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-28-2008, 05:53 AM
Jerry Schwartz
 
Posts: n/a
Default RE: Does MySQL require patch for Daylight Savings Time 2007 change

root@host [~]# zdump -v /etc/localtime |grep 2007
/etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST
isdst=0 gmtoff=-18000
/etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT
isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT
isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST
isdst=0 gmtoff=-18000


Regards,

Jerry Schwartz
Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341


> -----Original Message-----
> From: Jean-Sebastien Pilon [mailto:jspilon@PENSON.CA]
> Sent: Wednesday, February 28, 2007 2:37 PM
> To: Jerry Schwartz; mysql@lists.mysql.com
> Subject: RE: Does MySQL require patch for Daylight Savings
> Time 2007 change
>
> You ran your zdump -v against this file ?
>
>
> > -----Original Message-----
> > From: Jerry Schwartz [mailto:jschwartz@the-infoshop.com]
> > Sent: Wednesday, February 28, 2007 1:41 PM
> > To: Jean-Sebastien Pilon; mysql@lists.mysql.com
> > Subject: RE: Does MySQL require patch for Daylight Savings
> > Time 2007 change
> >
> > As for me, /etc/localtime -> /usr/share/zoneinfo/EST5DST
> >
> > Which should be correct for my system as I am located in that
> > time zone. I
> > don't understand why MySQL doesn't give the same UNIX_TIMESTAMP for
> > "2007-03-11 02:00:00" and "2007-03-11 03:00:00". Just to make
> > sure, I tried
> > it with one minute earlier and one minute later and got the
> > same results.
> >
> > Regards,
> >
> > Jerry Schwartz
> > Global Information Incorporated
> > 195 Farmington Ave.
> > Farmington, CT 06032
> >
> > 860.674.8796 / FAX: 860.674.8341
> >
> >
> > > -----Original Message-----
> > > From: Jean-Sebastien Pilon [mailto:jspilon@PENSON.CA]
> > > Sent: Wednesday, February 28, 2007 12:53 PM
> > > To: mysql@lists.mysql.com
> > > Subject: RE: Does MySQL require patch for Daylight Savings
> > > Time 2007 change
> > >
> > > You have both compare 0100 vs 0200 and 0200 vs 0300 in my
> > > reply... It wasn't clear because of emails being wrapped at

> > 80 chars.
> > >
> > > And it still doesn't work after loading the tables with
> > > mysql_tzinfo_to_sql
> > >
> > > And /etc/localtime is a symlink to the proper tz file ?
> > >
> > > Jean-Sébastien Pilon
> > > Systems Administrator
> > > Penson Financial Services Canada Inc.
> > > % Tel.: 514.841.9724 #269
> > > % Cell: 514.771.0365

> NOTICE: This email contains privileged and confidential
> information and is intended only for the individual to whom
> it is addressed. If you are not the named addressee, you
> should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have
> received this transmission by mistake and delete this
> communication from your system. E-mail transmission cannot be
> guaranteed to be secured or error-free as information could
> be intercepted, corrupted, lost, destroyed, arrive late or
> incomplete, or contain viruses.
>
> AVIS: Le présent courriel contient des renseignements de
> nature privilégiée et confidentielle et n’est destiné qu'à la
> personne à qui il est adressé. Si vous n’êtes pas le
> destinataire prévu, vous êtes par les présentes avisés que
> toute diffusion, distribution ou reproduction de cette
> communication est strictement interdite.* Si vous avez reçu
> ce courriel par erreur, veuillez en aviser immédiatement
> l’expéditeur et le supprimer de votre système. Notez que la
> transmission de courriel ne peut en aucun cas être considéré
> comme inviolable ou exempt d’erreur puisque les informations
> qu’il contient pourraient être interceptés, corrompues,
> perdues, détruites, arrivées en retard ou incomplètes ou
> contenir un virus. *
>




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253