Skip to content
Permalink
Browse files

Minimum year possible in project properties temporal extent should be 1

  • Loading branch information
nirvn committed Jun 30, 2020
1 parent 4f04fbc commit c0197371fe5c7fc164dd5a2f0a0ee4bc228f3e08
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 c019737

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