dbTalk Databases Forums  

Tuesday 19th of January 2038 not my favourite date in mysql

comp.databases.progress comp.databases.progress


Discuss Tuesday 19th of January 2038 not my favourite date in mysql in the comp.databases.progress forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Lyndon Barrie
 
Posts: n/a

Default Tuesday 19th of January 2038 not my favourite date in mysql - 10-05-2004 , 11:00 AM






Hi.
I've tried to use mysql with no luck!
all i want to do is enter a date on a web form, save it as a timestamp on a
mysql database, then view it when required in normal fashion!
doesn't sound too hard does it?
the query below was entered, note the timestamp entered......
1094774400

insert into
`mileage`(`start_mileage`,`end_mileage`,`date_of_j ourney`,`reason`)
values(72, 72512, 1094774400, 'company')

all went ok and the following appears to show what went into the table....

INSERT INTO `mileage` ( `start_mileage` , `end_mileage` , `date_of_journey`
, `reason` )
VALUES ( 72, 72512, 1094774400, 'company' )

All is good! note timestamp:
1094774400

then when I browse the table, the timestamp changes to
20010105054400
which it turns out to be
Tuesday 19th of January 2038.
I understand that this is the final date MySQL is any good until patched,
but why are my entries changing???

after searching google, the following site also gets the same problem on
their news items, lower down the page.......

http://www.chriskryzer.net/

any ideas?

thanks.



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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.