Menu

#7 Time in EZform

Core Class
closed-fixed
Code/Logic (73)
5
2004-03-30
2003-09-17
No

The dateForm function in core/EZform.php bumps the time
by the increment when editing an existing time. The
patch below works for me. This is against a hand
backport of 1.48 changes to 1.47, so I think the line
numbers are correct, but I'm not positive.

--- EZform.php-dist 2003-09-17 08:25:54.000000000 -0500
+++ EZform.php 2003-09-17 08:25:06.000000000 -0500
@@ -1023,7 +1023,7 @@
if((int)$old_min < 10)
$minutes[$key] = "0" . (string)$old_min;

- if(is_null($m) && ($old_min > $match_m)) {
+ if(is_null($m) && ($old_min >= $match_m)) {
$match_m = $old_min;
$m = 1;
}

Discussion

  • Jeffrey L. Taylor

    Logged In: YES
    user_id=180684

    My typo. This is in timeForm(), not dateForm().

     
  • Darren Greene

    Darren Greene - 2004-03-30
    • status: open --> closed-fixed
     
  • Darren Greene

    Darren Greene - 2004-03-30

    Logged In: YES
    user_id=783140

    This was fixed with Bug #907972.

    Darren

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.