Changeset 445 for trunk/Common/Types/Time.php
- Timestamp:
- Oct 15, 2012, 6:41:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Types/Time.php
r442 r445 9 9 function OnView($Item) 10 10 { 11 if( strtolower($Item['Value']) == 'now') $Item['Value'] = time();11 if((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 12 12 $TimeParts = getdate($Item['Value']); 13 13 … … 18 18 function OnEdit($Item) 19 19 { 20 if( strtolower($Item['Value']) == 'now') $Item['Value'] = time();20 if((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 21 21 $TimeParts = getdate($Item['Value']); 22 22
Note:
See TracChangeset
for help on using the changeset viewer.