Corretto settaggio per formato date.
git-svn-id: svn://10.65.10.50/trunk@4447 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4b61dac443
commit
ca94109211
@ -385,7 +385,7 @@ bool TForm_editor::edit_formato_data()
|
|||||||
bool dirty = FALSE;
|
bool dirty = FALSE;
|
||||||
TString16 fmt("1"),sep("-"),day("4"),month("4"),year("4");
|
TString16 fmt("1"),sep("-"),day("4"),month("4"),year("4");
|
||||||
|
|
||||||
if (_frm_date.not_empty()) // Se e' settato il formato globale lo prende...
|
if (_frm_date.len() == 5) // Se e' settato il formato globale lo prende...
|
||||||
{
|
{
|
||||||
fmt.format("%c", _frm_date[0]);
|
fmt.format("%c", _frm_date[0]);
|
||||||
sep.format("%c", _frm_date[4]);
|
sep.format("%c", _frm_date[4]);
|
||||||
@ -426,7 +426,8 @@ bool TForm_editor::edit_formato_data()
|
|||||||
|
|
||||||
TDate dd(TODAY);
|
TDate dd(TODAY);
|
||||||
TFormatted_date d(dd);
|
TFormatted_date d(dd);
|
||||||
d.set_format(fmt<< day << month << year<< sep);
|
fmt<< day << month << year<< sep;
|
||||||
|
d.set_format(fmt);
|
||||||
|
|
||||||
m.set(F_DEXAMPLE, d.string());
|
m.set(F_DEXAMPLE, d.string());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user