mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
prepare the date widget to output a very long dateformat (week + dow)
This commit is contained in:
parent
f733365165
commit
20fccf9bf6
@ -21,7 +21,7 @@
|
|||||||
* &8 = dont show time for readonly and type date-time if time is 0:00,
|
* &8 = dont show time for readonly and type date-time if time is 0:00,
|
||||||
* &16 = prefix r/o display with dow
|
* &16 = prefix r/o display with dow
|
||||||
* &32 = prefix r/o display with week-number
|
* &32 = prefix r/o display with week-number
|
||||||
*
|
* &48 = prefix r/o display with weeknumber and dow
|
||||||
* This widget is independent of the UI as it only uses etemplate-widgets and has therefor no render-function.
|
* This widget is independent of the UI as it only uses etemplate-widgets and has therefor no render-function.
|
||||||
* Uses the adodb datelibary to overcome the windows-limitation to not allow dates before 1970
|
* Uses the adodb datelibary to overcome the windows-limitation to not allow dates before 1970
|
||||||
*
|
*
|
||||||
@ -217,6 +217,10 @@
|
|||||||
{
|
{
|
||||||
$str = lang('Wk').adodb_date('W',adodb_mktime(12,0,0,$value['m'],$value['d'],$value['Y'])).' ';
|
$str = lang('Wk').adodb_date('W',adodb_mktime(12,0,0,$value['m'],$value['d'],$value['Y'])).' ';
|
||||||
}
|
}
|
||||||
|
if (!$n && $options & 64 )
|
||||||
|
{
|
||||||
|
$str = lang('Wk').adodb_date('W',adodb_mktime(12,0,0,$value['m'],$value['d'],$value['Y'])).' '.lang(adodb_date('l',adodb_mktime(12,0,0,$value['m'],$value['d'],$value['Y']))).' ';
|
||||||
|
}
|
||||||
$str .= ($str != '' ? $sep[$n] : '') .
|
$str .= ($str != '' ? $sep[$n] : '') .
|
||||||
(is_numeric($value[$format[$n]]) ? sprintf('%02d',$value[$format[$n]]) : $value[$format[$n]]);
|
(is_numeric($value[$format[$n]]) ? sprintf('%02d',$value[$format[$n]]) : $value[$format[$n]]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user