Home Register Arcade Gallery Chatroom Members Today's Posts Log In
Go Back   Inside: SereneScreen Fan Forum > SereneScreen Products > Marine Aquarium 3 for Windows
Notices

Reply
 
Thread Tools
Old 02-09-2009, 09:38 PM   #1
Ralph
Retired
 
Ralph's Avatar
 
Join Date: Jan 2002
1 Highscore

Location: Edmonton Alberta Ca
Posts: 2,443
Millennium bug in clock

NOT wanting to digress from moving ahead to clams... but there may be a millennium bug in Jim's clock code. Setting the year back... 1999 or previous garbles up the year shown on the crystal...
Attached Images
File Type: jpg Clock.jpg (61.0 KB, 30 views)
Ralph is offline   Reply With Quote
Old 02-09-2009, 10:25 PM   #2
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,791
Now, see why it's only in the BetaBeta, and not the ReleaseBeta? Good catch.

Edit: OK, I fixed it so that the third digit will display properly. The first two digits are hard-coded to be "20", though, so it can't do 1999.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline   Reply With Quote
Old 02-10-2009, 02:51 AM   #3
Cobra
Registered
 
Join Date: Nov 2001

Location: Germany, Bamberg
Posts: 13
Oh no! What about all the people running the aquarium in a Windows emulator in the year 3000?

By the way. I just woke up from a really strange dream. Jim visited me but i really dont know why. Must have been some kind of vacation.
Cobra is offline   Reply With Quote
Old 02-10-2009, 08:16 AM   #4
jleslie
Engineer
 
jleslie's Avatar
 
Join Date: Aug 2002

Location: London, UK
Posts: 1,279
BTW is the date internationalised or does everyone get the non-US version, which would work for me (9 Feb not Feb 9)?
jleslie is offline   Reply With Quote
Old 02-10-2009, 09:28 AM   #5
feldon34
Forum Administrator
 
feldon34's Avatar
 
Join Date: Dec 2000

Location: Rock Hill, SC
Posts: 10,939
Originally posted by Jim Sachs:
Now, see why it's only in the BetaBeta, and not the ReleaseBeta? Good catch.

Edit: OK, I fixed it so that the third digit will display properly. The first two digits are hard-coded to be "20", though, so it can't do 1999.  
You might be painting yourself into a corner if you are displaying "20" instead of reading the year. Are you reading the day-of-the-week using locale?
"Journalism is printing what someone else does not want printed. Everything else is public relations." - George Orwell
"If voting changed anything, they'd make it illegal." - Emma Goldman
feldon34 is offline   Reply With Quote
Old 02-10-2009, 11:08 AM   #6
patscarr
Pet Shark
 
patscarr's Avatar
 
Join Date: Nov 2001
1 Highscore

Location: Back in Buffalo
Posts: 5,455
Can it do 21?
Patrick
patscarr is offline   Reply With Quote
Old 02-10-2009, 11:28 AM   #7
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,791
Nope. I'll have to do an update when I'm 151.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline   Reply With Quote
Old 02-10-2009, 05:07 PM   #8
henemly
asdf
 
henemly's Avatar
 
Join Date: Feb 2008

Location: Hiko, CommieFagnia
Posts: 278
LoL, Just thought: the new "MA8" by J. Sachs VII
http://www.coltrain.byethost8.com
henemly is offline   Reply With Quote
Old 02-10-2009, 05:14 PM   #9
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,791
I only have one offspring, and she has no interest in computers.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline   Reply With Quote
Old 02-10-2009, 06:27 PM   #10
theOLDone
Registered
 
Join Date: Jan 2009

Location: north of seattle
Posts: 6
Thanks for the clock
theOLDone is offline   Reply With Quote
Old 02-10-2009, 07:28 PM   #11
Ralph
Retired
 
Ralph's Avatar
 
Join Date: Jan 2002
1 Highscore

Location: Edmonton Alberta Ca
Posts: 2,443
I see with this version the millennium bug has changed... the "20" stays while the last 2 digits are correct. You might loose some of the Amish customers that like to see 1899
Ralph is offline   Reply With Quote
Old 02-10-2009, 08:12 PM   #12
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,791
To much programming to hook up those two digits. They will always be "20" for the rest of my lifetime, and many years beyond.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline   Reply With Quote
Reply
Go Back   Inside: SereneScreen Fan Forum > SereneScreen Products > Marine Aquarium 3 for Windows




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 On


All times are GMT -6. The time now is 06:33 AM.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.