Replace GetDateFormat() method by GetDateLocalFormat() cause of Win32
Forgot to set start and end dates when adding an account
This commit is contained in:
@@ -386,7 +386,12 @@ void KissCount::NewUser(const QString& name)
|
||||
/*.shared = */false,
|
||||
/*.blocked = */false,
|
||||
/*._default = */true,
|
||||
/*.is_owner = */true};
|
||||
/*.is_owner = */true,
|
||||
/* ._virtual = */false,
|
||||
/* .hidden = */false,
|
||||
/* .start_date = */QDate::currentDate(),
|
||||
/* .end_date = */QDate::currentDate().addYears(50),
|
||||
};
|
||||
Category cat ;
|
||||
|
||||
_db->NewUser(name);
|
||||
@@ -717,12 +722,12 @@ QLocale* KissCount::GetLocale()
|
||||
return _wxUI->GetLocale();
|
||||
}
|
||||
|
||||
QString KissCount::GetDateFormat()
|
||||
QString KissCount::GetDateLocalFormat()
|
||||
{
|
||||
return _wxUI->GetDateFormat();
|
||||
return _wxUI->GetDateLocalFormat();
|
||||
}
|
||||
|
||||
QString KissCount::FormatDate(int day, int month, int year)
|
||||
{
|
||||
return QDate(year, month, day).toString(_wxUI->GetDateFormat());
|
||||
return QDate(year, month, day).toString(_wxUI->GetDateLocalFormat());
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ public:
|
||||
bool ChangeDatabase(QString filename);
|
||||
|
||||
QLocale* GetLocale();
|
||||
QString GetDateFormat();
|
||||
QString GetDateLocalFormat();
|
||||
QString FormatDate(int day, int month, int year);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user