Skip to content

Commit

Permalink
Update src/core/expression/qgsexpressionfunction.cpp
Browse files Browse the repository at this point in the history
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
  • Loading branch information
rduivenvoorde and nyalldawson committed Nov 1, 2019
1 parent ae0f8ff commit 2ce7217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -1971,7 +1971,7 @@ static QVariant fcnEpoch( const QVariantList &values, const QgsExpressionContext

static QVariant fcnFromEpoch( const QVariantList &values, const QgsExpressionContext *, QgsExpression *parent, const QgsExpressionNodeFunction * )
{
long millisecs_since_epoch = QgsExpressionUtils::getIntValue( values.at( 0 ), parent );
long long millisecs_since_epoch = QgsExpressionUtils::getIntValue( values.at( 0 ), parent );
// no sense to check for strange values, as Qt behaviour is undefined anyway (see docs)
return QVariant( QDateTime::fromMSecsSinceEpoch( millisecs_since_epoch ) );
}
Expand Down

0 comments on commit 2ce7217

Please sign in to comment.