provide ways to over-ride the datetime pickers
This commit is contained in:
@@ -1158,6 +1158,8 @@ function status_editor($a, $x, $popup = false) {
|
||||
$preview = '';
|
||||
|
||||
$defexpire = ((($z = get_pconfig($x['profile_uid'], 'system', 'default_post_expire')) && (! $webpage)) ? $z : '');
|
||||
if($defexpire)
|
||||
$defexpire = datetime_convert('UTC',date_default_timezone_get(),$defexpire,'Y-m-d H:i');
|
||||
|
||||
$cipher = get_pconfig($x['profile_uid'], 'system', 'default_cipher');
|
||||
if(! $cipher)
|
||||
|
||||
@@ -175,6 +175,8 @@ function timesel($format, $h, $m, $id='timepicker') {
|
||||
* set maximum date from picker with id $maxfrom (none by default)
|
||||
*/
|
||||
function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '',$required = false) {
|
||||
|
||||
|
||||
// Once browser support is better this could probably be replaced with native HTML5 date picker
|
||||
$o = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user