Skip to content
Permalink
Browse files

[MESH] Fix time formating when time is far from reference

  • Loading branch information
github-actions authored and nyalldawson committed Jan 8, 2020
1 parent 86ed380 commit b3d0dd197b263063188bf3cae4952f935a3b243b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/mesh/qgsmeshlayerutils.cpp
@@ -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

0 comments on commit b3d0dd1

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