PDA

View Full Version : 1.5beta1 - 25 hours time bug


eon
12-18-2005, 03:42 PM
When you add a picture you can choose to set a date and time.

The time goes from 0 hour to 24 hour. This must be 0 to 23 hour.
When you choose 24 hour then the image get the date/time 00-00-00 00:00.

/admin/new_image.php, row 88:
<?php

$lc = 0;

while($lc <= 24) {

if($lc < 10) { $lc = "0$lc"; }

echo "<option value='$lc'>$lc</option>";

$lc++;

}

?>

Solution:
<?php

$lc = 0;

while($lc < 24) {

if($lc < 10) { $lc = "0$lc"; }

echo "<option value='$lc'>$lc</option>";

$lc++;

}

?>

or:
<?php

$lc = 0;

while($lc <= 23) {

if($lc < 10) { $lc = "0$lc"; }

echo "<option value='$lc'>$lc</option>";

$lc++;

}

?>

Connie
12-18-2005, 03:56 PM
thanks, that we will fix for sure !

tinyblob
12-18-2005, 04:23 PM
I emailed this bug to Ramin a few days ago and asked him to make the change, obviously he didn't..

eon
12-18-2005, 04:30 PM
I emailed this bug to Ramin a few days ago and asked him to make the change, obviously he didn't..

AND you promised me ... :D

It's a small one. Who is going place is photo's at 24:25 in the evening anyway?

blinking8s
12-18-2005, 04:33 PM
lol...wouldnt that be morning? on the moon?

raminia
12-18-2005, 08:29 PM
I emailed this bug to Ramin a few days ago and asked him to make the change, obviously he didn't..
obviously I've forgotten. sorry but I'm so busy that you cannot imagine!

Connie
12-18-2005, 09:00 PM
it's fixed now. I fixed it in the CVS version, now the day has 24 hours back and the earth is a disk ;=)