StelLocaleMgr.cpp   StelLocaleMgr.cpp 
skipping to change at line 337 skipping to change at line 337
QString StelLocaleMgr::sDateFormatToString(SDateFormat df) const QString StelLocaleMgr::sDateFormatToString(SDateFormat df) const
{ {
if (df == SDateSystemDefault) return "system_default"; if (df == SDateSystemDefault) return "system_default";
if (df == SDateMMDDYYYY) return "mmddyyyy"; if (df == SDateMMDDYYYY) return "mmddyyyy";
if (df == SDateDDMMYYYY) return "ddmmyyyy"; if (df == SDateDDMMYYYY) return "ddmmyyyy";
if (df == SDateYYYYMMDD) return "yyyymmdd"; if (df == SDateYYYYMMDD) return "yyyymmdd";
qWarning() << "WARNING: unrecognized date_display_format value : " < < (int)df << " system_default used."; qWarning() << "WARNING: unrecognized date_display_format value : " < < (int)df << " system_default used.";
return "system_default"; return "system_default";
} }
QString StelLocaleMgr::getQtDateFormatStr() const
{
QString dfmt;
switch (dateFormat) {
case SDateDDMMYYYY:
dfmt = "dd.MM.yyyy";
break;
case SDateMMDDYYYY:
dfmt = "MM.dd.yyyy";
break;
case SDateYYYYMMDD:
dfmt = "yyyy.MM.dd";
break;
default:
dfmt = "yyyy.MM.dd";
break;
}
return dfmt;
}
void StelLocaleMgr::setCustomTzName(const QString& tzname) void StelLocaleMgr::setCustomTzName(const QString& tzname)
{ {
customTzName = tzname; customTzName = tzname;
timeZoneMode = STzCustom; timeZoneMode = STzCustom;
if( customTzName != "") if( customTzName != "")
{ {
// set the TZ environement variable and update c locale stuf f // set the TZ environement variable and update c locale stuf f
#ifdef _MSC_BUILD #ifdef _MSC_BUILD
_putenv(_strdup(qPrintable("TZ=" + customTzName))); _putenv(_strdup(qPrintable("TZ=" + customTzName)));
 End of changes. 1 change blocks. 
0 lines changed or deleted 20 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/