Skip to content

Commit

Permalink
[MESH] Fix time formating when time is far from reference
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Jan 9, 2020
1 parent 86ed380 commit b3d0dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshlayerutils.cpp
Expand Up @@ -152,7 +152,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
Expand Down

0 comments on commit b3d0dd1

Please sign in to comment.