Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.inc |
— | — | @@ -463,6 +463,8 @@ |
464 | 464 | $month = $date['month']; |
465 | 465 | $day = $date['day']; |
466 | 466 | } else { |
| 467 | + // handle 'default=now' |
| 468 | + if ($date == 'now') $date = date('Y/m/d'); |
467 | 469 | $actual_date = new SMWTimeValue('_dat'); |
468 | 470 | $actual_date->setUserValue($date); |
469 | 471 | $year = $actual_date->getYear(); |