Skip to content

Commit

Permalink
Minimum year possible in project properties temporal extent should be 1
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Jul 1, 2020
1 parent 6bbae5e commit e79a859
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -238,6 +238,8 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas *mapCanvas, QWidget *pa
// Set time settings input
QgsDateTimeRange range = QgsProject::instance()->timeSettings()->temporalRange();

mStartDateTimeEdit->setDateTimeRange( QDateTime( QDate( 1, 1, 1 ) ), mStartDateTimeEdit->maximumDateTime() );
mEndDateTimeEdit->setDateTimeRange( QDateTime( QDate( 1, 1, 1 ) ), mEndDateTimeEdit->maximumDateTime() );
mStartDateTimeEdit->setDisplayFormat( "yyyy-MM-dd HH:mm:ss" );
mEndDateTimeEdit->setDisplayFormat( "yyyy-MM-dd HH:mm:ss" );

Expand Down

0 comments on commit e79a859

Please sign in to comment.