Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: 2000 Bug Fix for the Cybercollege Guesbook
From: Matthias Kannengiesser
Date: Tue, 4 Jan 2000 03:30:06 GMT

I changed the Date Function. Just copy and paste these few lines
in your CGI-Script or use the attached txt file and the fix is done:

#### Get Date and Time ##################################
#### Jahr 2000 Sicher ##################################

sub datum {
@days = ('Sunday','Monday','Tuesday','Wednesday',
'Thursday','Friday','Saturday');
@months = ('January','February','March','April','May','June','July',
'August','September','October','November','December');


($sec,$min,$hour,$mday,$mon,$year,$wday) =
(localtime(time))[0,1,2,3,4,5,6];
$time = sprintf("%02d.%02d",$hour,$min);
if ($mday < 10) { $mday = "0$mday"; }
# $time = sprintf("%02d:%02d:%02d",$hour,$min,$sec);
$year += 1900;
$long_date = "$mday\. $months[$mon] $year ($time Clock)";

# $long_date = "$days[$wday], $months[$mon] $mday, $year at
$time";
}

exit;

---

that's it !

yours
Matze
(Cybercollege Team)

P.S.: You can download the bug fixed version here:
http://www.cybercollege.de
---
URL: http://www.cybercollege.de
E-mail: madokanatcybercollege [dot] de



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]