Skip to content
Permalink
Browse files

[MESH] fix time reference

  • Loading branch information
vcloarec authored and nyalldawson committed Jan 8, 2020
1 parent 55bdb46 commit 0ba2bccf86ffe5af84dc84a2a50788fa9a4bb793
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/mesh/qgsmeshlayerutils.cpp
@@ -280,7 +280,7 @@ QString QgsMeshLayerUtils::formatTime( double hours, const QgsMeshTimeSettings &
{
QString format( settings.absoluteTimeFormat() );
QDateTime dateTime( settings.absoluteTimeReferenceTime() );
int seconds = static_cast<int>( hours * 3600.0 );
qint64 seconds = static_cast<qint64>( hours * 3600.0 );
dateTime = dateTime.addSecs( seconds );
ret = dateTime.toString( format );
if ( ret.isEmpty() ) // error

0 comments on commit 0ba2bcc

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