mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Use 2010-1-1 as invalid date, and fix the test for it
This commit is contained in:
parent
6b10cb665d
commit
1b727eff76
@ -355,7 +355,9 @@ quint32 convertFLWDate(quint32 timestamp) // Bit format: hhhhhmmmmmmssssssYYYYYY
|
||||
QDateTime dt = QDateTime(QDate(year, month, day), QTime(hour, minute, second), Qt::UTC);
|
||||
|
||||
if(!dt.isValid()){
|
||||
dt = QDateTime(QDate(2015,1,1), QTime(0,0,1));
|
||||
// make this date too early, then change test later
|
||||
// dt = QDateTime(QDate(2015,1,1), QTime(0,0,1));
|
||||
dt = QDateTime(QDate(2010,1,1), QTime(0,0,0));
|
||||
}
|
||||
// Q NO!!! _ASSERT(dt.isValid());
|
||||
// if ((year == 2013) && (month == 9) && (day == 18)) {
|
||||
@ -483,7 +485,7 @@ bool FPIconLoader::OpenFLW(Machine *mach, const QString & filename)
|
||||
|
||||
ts = convertFLWDate(t2);
|
||||
|
||||
if (ts > QDateTime(QDate(2015,1,1), QTime(0,0,0)).toTime_t()) {
|
||||
if (ts < QDateTime(QDate(2010,1,1), QTime(0,1,0)).toTime_t()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user