LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-23-2003, 10:45 PM   #1
edhan
Member
 
Registered: Sep 2003
Location: Singapore
Distribution: Redhat 8.0
Posts: 93

Rep: Reputation: 15
Angry Wrong date shown using RH8.0 with php


Hi

I am now facing this problem. Using PHP to allow users to key in their DOB ( Date of Birth ) but when output on the screen, it is shown as 1 Jan 1970 for all input of year below 1970. This means that if I key in the DOB as: 23 Feb 1969, this will be shown as 1 Jan 1970. But if I key in any DOB above 1970, it will be shown correctly.

I have come across this site mentions about the date problem:

PHP native date functions use integer timestamps for computations.
Because of this, dates are restricted to the years 1901-2038 on Unix
and 1970-2038 on Windows due to integer overflow for dates beyond
those years. This library overcomes these limitations by replacing the
native function's signed integers (normally 32-bits) with PHP floating
point numbers (normally 64-bits).

http://php.weblogs.com/adodb_date_time_library

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

I do not really know how to resolve after reading it. I have tried this on FreeBSD, it does not have this problem. Also tested with RH 7.1 it does not have this problem.

Any way to resolve this problem without switching from my current RH 8.0 to RH 7.1 ?

Thanks!

Regards
Edward Han
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
please help guys, wrong cpu speed shown with a regular non-mobile cpu !! : ( maku Linux - Hardware 1 01-02-2005 02:03 PM
wrong date on sent mails using qmail NuLLiFiEd Slackware 3 11-23-2004 04:50 PM
Bug report: wrong date/time format in last visited wipe LQ Suggestions & Feedback 0 07-29-2004 06:21 AM
Date and time always wrong snatale1 Linux - General 6 12-13-2003 10:27 PM
the format of the date in stat in wrong rhuser Programming 9 03-16-2003 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration