Skip to content
Permalink
Browse files

Minimum year possible in project properties temporal extent should be 1

  • Loading branch information
nirvn authored and nyalldawson committed Jul 1, 2020
1 parent 6bbae5e commit e79a8597d860abb363286522af65e09660d19172
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgsprojectproperties.cpp
@@ -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" );

0 comments on commit e79a859

Please sign in to comment.
You can’t perform that action at this time.