LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2003, 11:29 AM   #1
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Rep: Reputation: 30
php timestamp problems before 1970


has anyone had any problems with timestamps when using php scripts running on linux OS. according to php documentations...this should only happned on Windows. right now we are running php 4.1.2 and higher (but nothing over php 4.2.2) on our red hat systems. and we are having problems getting correct dates before 1970. so i'm not sure what is going on.....don't know if it's calling some kind of linux command (time zero being 1970) and it isn't resolving the difference or what....just wondering if anyone ran into these bugs on some older versions of php and if there is some kind of fix for the problem....(which of course could easily be update php)...just wondered if anyone had any info.....thnx



in php, when using a timestamp related function, we get results we did not get some time back. dates that would result in a negative timestamp used to work fine. now they are all -1. according to php documentation , they should work from about 1902 to 2038....except on windows. so the dates where working at one point and now they aren't

Last edited by wedgeworth; 12-09-2003 at 11:33 AM.
 
Old 12-09-2003, 11:48 AM   #2
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30

Last edited by wedgeworth; 12-09-2003 at 02:55 PM.
 
Old 12-09-2003, 01:41 PM   #3
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30

Last edited by wedgeworth; 12-09-2003 at 02:55 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Timestamp Help jch02140 Linux - Newbie 7 03-17-2006 03:33 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM
php: display timestamp in editable dropdown box? opioid Programming 5 07-28-2004 05:33 PM
Debian in PA-RISC - System Clock is reset to Jan 1970 at bootup wgpaine Linux - General 2 02-07-2004 11:38 AM
adding timestamp to name niehls Linux - General 2 12-05-2003 11:40 AM


All times are GMT -5. The time now is 06:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration