473,756 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Daylight Savings Time, PHP/Mandrake Linux, March 2007. Options?

I have an old machine running Mandrake 9.2 and PHP 4.3.1 hosting
several websites.

With the coming changes to daylight savings time in March 2007, what
are my options in correcting the current calculation on this machine?

Ideal option: RPM patch.

Worst option: upgrade OS (it's a very old machine).

Feb 16 '07 #1
6 4020
On 16 Feb 2007 03:51:32 -0800, sugapablo wrote:
I have an old machine running Mandrake 9.2 and PHP 4.3.1 hosting
several websites.
Ye-ouch. I would be very afraid to be hosting websites with all the
security fixes you are missing, OS and PHP.
Feb 16 '07 #2
C.
On 16 Feb, 11:51, "sugapablo" <sugapa...@hotm ail.comwrote:
I have an old machine running Mandrake 9.2 and PHP 4.3.1 hosting
several websites.

With the coming changes to daylight savings time in March 2007, what
are my options in correcting the current calculation on this machine?

Ideal option: RPM patch.

Worst option: upgrade OS (it's a very old machine).

Normally, you shouldn't have to do anything provided your hardware
clock runs on GMT/UTC/Zulu and your TZ environment variable is
correctly configured.

BUT I suspect the real thrust of your question is what to do IF YOU
HAPPEN TO LIVE IN ONE OF THE COUNTRIES CHANGING WHEN DST STARTS/ENDS.

Apart from moving house or upgrading to a more recent distro, the only
real option is to upgrade your version of the timezones files. See
http://www.twinsun.com/tz/tz-link.htm for a description of the process
and how to get the raw data files.

C.

Feb 16 '07 #3
On Fri, 16 Feb 2007 03:51:32 -0800, sugapablo wrote:
I have an old machine running Mandrake 9.2 and PHP 4.3.1 hosting
several websites.

With the coming changes to daylight savings time in March 2007, what
are my options in correcting the current calculation on this machine?

Ideal option: RPM patch.

Worst option: upgrade OS (it's a very old machine).
Hey, my LAN server still runs Mandrake 9.1. I tried 2005LE on it but the
kernel doesn't like my hardware. I'll try an Ubuntu install one of these
days.

I presume your problem relates to this:
"The passage of the US Energy Policy Act of 2005 alters the Daylight
Saving Time (DST) start and end dates by four weeks. Several countries
(Canada, Bermuda) are also implementing the same DST change; other
countries may decide to make similar changes to DST rules. Beginning in
2007, DST start and end dates will be:

* Start date: Second Sunday of March (March 11)
* End date: First Sunday of November (November 4)"

urpmi timezone
The timezone package comes with a utility called zic, the time zone
compiler. Prepare a suitable text file in the correct format, process it
through zic, move the output to a location in /usr/share/zoneinfo/ and
then create a symlink at /etc/localtime that points to it.

Brazilian users need to do this every year as the DST change dates do not
follow a set pattern - they pick the dates every year.
http://www.alkalay.net/software/zoneinfo/Brazil.txt
^ Avi hasn't updated this for 2007 yet


--
--
Posted via a free Usenet account from http://www.teranews.com

Feb 16 '07 #4
sugapablo wrote:
With the coming changes to daylight savings time in March 2007, what
are my options in correcting the current calculation on this machine?

Ahem, use ntp to synchronize your PC clock, perhaps ? Or is Mdk 9.2 not
aware of such wonders of technology ? Even dumb Windblows knows to
update time in accordance with the local DST policy.
--


Some customized and hard to find rpms here:
http://www.drivehq.com/folder/p1029971.aspx?view=detail
(Bandwidth is limited - use it wisely)

If you grab my rpms please consider signing up via this link
and getting me some referral points:
http://www.drivehq.com/secure/signup.aspx?refID=2454535

RLU #407952
Feb 16 '07 #5
RaMRod <id***@think.so writes:
>sugapablo wrote:
>With the coming changes to daylight savings time in March 2007, what
are my options in correcting the current calculation on this machine?
>Ahem, use ntp to synchronize your PC clock, perhaps ? Or is Mdk 9.2 not
aware of such wonders of technology ? Even dumb Windblows knows to
update time in accordance with the local DST policy.
--
Useless advice. ntp has nothing to do with DST. It will make sure that your
system clock is accurate to a few milliseconds but that is in UTC
(Universal Time Coordinate) which never suffers from DST. To translate from
that to your local time, you use the file /etc/localtime or the file
pointed to in zoneinfo by the TZ environment variable.

It has been posted here many times.
Get the file
tzdata2007a.tar .gz
from many places on the web
Go to the directory where you downloaded it
tar -xzf tzdata2007a.tar .gz
zic northamerica
rm /etc/localtime
cp /usr/share/zoneinfo/America/Vancouver /etc/localtime
(or if you are unfortunate enough not to live in Vancouver, use the nearest
large city with the same timezone as you have)
That is it.
If you have a program which runs continuously and needs the correct local
time, restart that program. Otherwise sit back and enjoy

Feb 17 '07 #6
On 16 Feb 2007, in the Usenet newsgroup alt.os.linux.ma ndriva, in article
<11************ **********@m58g 2000cwm.googleg roups.com>, sugapablo wrote:
>I have an old machine running Mandrake 9.2 and PHP 4.3.1 hosting
several websites.
Last maintained when? Support ended two years ago, and with all of the
exploits since then, I'd hate to have a system that old near a network.
>With the coming changes to daylight savings time in March 2007, what
are my options in correcting the current calculation on this machine?
Really, I would replace it with a modern distribution. IF YOU ABSOLUTELY
MUST retain it, then you have one sure option, and one possible.

1. Sure option:

ftp://elsie.nci.nih.gov/pub/tz*2007b.tar.gz

-rw-r--r-- 1 8800 0 187437 Feb 12 14:34 tzcode2007b.tar .gz
-rw-r--r-- 1 8800 0 157432 Feb 12 14:34 tzdata2007b.tar .gz

Put those into their own directories, un-tar, and follow the instructions
in the tzcode file. The tool you'll need is 'zic' which is part of that
package.

NOTE FOR OTHERS: The difference between the tzdata2007a and tzdata2007b
packages is only a notice in the "leapsecond s" file, announcing that there
will not be a leapsecond at the end of June. If you have tzdata2007a,
there is no need to update.
>Ideal option: RPM patch.
2. Possible option:

Get the latest tzdata rpm from a Mandrake/Mandriva updates server. If you
are not in The Bahamas, version 2006p is adequate. If you are not in Canada
or Bermuda, version 2006n is acceptable. As root, try the following command

rpm -F --test /path/to/tzdata2006mumbl e.rpm

(making suitable substitution for package filename and location). If rpm
does not barf, you can run the command again without the --test option to
actually do the upgrade. Then, restart all applications (a reboot might
be required in some cases).
>Worst option: upgrade OS (it's a very old machine).
No, that's the best option. If the hardware doesn't have the horsepower to
be running the latest bells/whistles of Mandriva, consider another
distribution. Remember also that X really has no place on a server, because
_USERS_ have no place on a server, and X is drawing pictures that no one
can see. Wasted CPU cycles.

Old guy
Feb 17 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1338
by: GMM50 | last post by:
While DST is not directly part of the C language, some of the libraries that come with compiler and perhaps the C standard itself include references to DST. How will the community react to the new federal law extending DST into November in the year 2007? What should developers be ready to do? How do foreign countries/developers use DST in their present systems?
0
1511
by: Chirag Shukla | last post by:
Colleagues, I wanted to share a function to find if a date is in Daylight Saving Time or not. I was able to make this function faster than reading MSDN to find functions that .NET provides. I didnt know if .NET was equipped with the new changes President Bush made with respect to Daylight Saving Time increase starting 2007. I could have found out by trying ..NET functions, only if I wasnt a lousy syntax scavanger. Here goes:
1
1381
by: Daniel | last post by:
Is there a patch for congress new 2007 daylight savings time change? http://geography.about.com/cs/daylightsavings/a/dst.htm This could have economic impact like y2k did. Is there a patch for windows 95/98/me/xp/2000/2003/etc. to handle new daylight savings time rules? are there any patches for .net? win32? etc.? what all else is impacted by this in microsoft products and apis?
6
1423
by: Daniel | last post by:
Do any microsoft buildtime dependancies C#/C/c++/VB/etc. need to be updated for the 2007 policy on daylight savings time? I know the OS needs to be updated but I care now about C libraries, .net binaries, etc. that microsoft maintains which have coded in them logic around datetime. e.g. the C# and c++ datetime objects that microsoft maintains, do these have any logic that needs to be updated reguardless of the OS being updated? Or is all...
4
1627
by: Merijn Schering | last post by:
I heard that the Daylight Savings time in the US will change. Will PHP deal with this automatically? Best regards, Merijn
1
1157
by: Taps | last post by:
Hi, There is this high-priority update from Microsoft regarding a revised Daylight Saving Time savings which kicks in on March 11, 2007. Wanted to know what kind of effect this will have in a typical web project - on the client and the web-server. Was interested also on client side javascript functions which calculate dates - shoud the end-user (client) apply this patch update, what happens if they do not. re : Update for Windows XP...
4
4404
by: Polaris431 | last post by:
I have a web application in ASP.NET that will be used globally. Data is collected on mobile devices running Windows Mobile and sent to the web server where it is stored and can be viewed. Data is timestamped when it is sent from a PDA device to the server. I am writing software for both the web app and the PDA. The web server is located at one location while the PDA devices are located around the world. The question is, how do I handle...
3
3977
by: bernhard Hoyler | last post by:
Hi, I would like to determine whether at a certain time point in time the daylight savings time is in effect. This means such a logic should show that today (16-Nov-2007) no daylight savings time (or European summertime) is in effect, but at 1-Aug-2007 it is. Thanks for your help Bernhard Hoyler
27
6888
by: RobG | last post by:
I was investigating a function to determine whether daylight saving was being observed on a particular date (given the platform's regional settings) and came across a suggestion at merlyn.com to test the time zone offset on a variety of dates to see if it changes. Based on that, I developed the following checkDST() function which, as far as I can tell, should be sufficient. It checks either the date passed to it or the current date with...
0
9287
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10046
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6542
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.