{
wxString txt;
if (date.IsValid())
- txt = date.FormatDate();
+ txt = date.FormatISODate();
if ( !wxControl::Create(parent, id, pos, size,
style | wxCLIP_CHILDREN | wxWANTS_CHARS,
m_txt=new wxTextCtrl(this, CTRLID_TXT, txt, wxDefaultPosition, size, TXTCTRL_FLAGS);
m_txt->Connect(wxID_ANY, wxID_ANY, wxEVT_KEY_DOWN, wxKeyEventHandler(wxCalendarBox::OnEditKey), 0, this);
m_txt->Connect(wxID_ANY, wxID_ANY, wxEVT_KILL_FOCUS, wxFocusEventHandler(wxCalendarBox::OnKillFocus), 0, this);
- SetFormat(wxT("%x"));
+ SetFormat(wxT("%Y-%m-%d"));
m_btn = new wxBitmapButton(this, CTRLID_BTN, bmp, wxDefaultPosition, bs);
if (m_cal)
{
if (date.IsValid())
- m_txt->SetValue(date.FormatDate());
+ m_txt->SetValue(date.FormatISODate());
else
m_txt->SetValue(wxEmptyString);
}
{
if (m_cal)
{
- m_txt->SetValue(m_cal->GetDate().FormatDate());
+ m_txt->SetValue(m_cal->GetDate().FormatISODate());
if (ev.GetEventType() == wxEVT_CALENDAR_DOUBLECLICKED)
{
DropDown(false);
properties->AppendItem(_("Name"), GetName());
properties->AppendItem(_("OID"), GetOid());
- properties->AppendItem(_("Account expires"), GetAccountExpires());
+ properties->AppendItem(_("Account expires"), DateToAnsiStr(GetAccountExpires()));
properties->AppendItem(_("Can login?"), BoolToYesNo(GetCanLogin()));
properties->AppendItem(_("Superuser?"), BoolToYesNo(GetSuperuser()));
properties->AppendItem(_("Create databases?"), BoolToYesNo(GetCreateDatabase()));
properties->AppendItem(_("Name"), GetName());
properties->AppendItem(_("User ID"), GetUserId());
- properties->AppendItem(_("Account expires"), GetAccountExpires());
+ properties->AppendItem(_("Account expires"), DateToAnsiStr(GetAccountExpires()));
properties->AppendItem(_("Superuser?"), BoolToYesNo(GetSuperuser()));
properties->AppendItem(_("Create databases?"), BoolToYesNo(GetCreateDatabase()));
properties->AppendItem(_("Update catalogs?"), BoolToYesNo(GetUpdateCatalog()));