File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Integration/Model/ResourceModel/Oauth Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function getTimeInSecondsSinceCreation($consumerId)
56
56
$ select = $ connection ->select ()
57
57
->from ($ this ->getMainTable ())
58
58
->reset (\Magento \Framework \DB \Select::COLUMNS )
59
- ->columns (new \Zend_Db_Expr ('CURRENT_TIMESTAMP () - created_at ' ))
59
+ ->columns (new \Zend_Db_Expr ('UTC_TIMESTAMP () - created_at ' ))
60
60
->where ('entity_id = ? ' , $ consumerId );
61
61
62
62
return $ connection ->fetchOne ($ select );
@@ -74,7 +74,7 @@ public function getTimeInSecondsSinceTokenExchangeStarted($consumerId)
74
74
$ select = $ connection ->select ()
75
75
->from ($ this ->getMainTable ())
76
76
->reset (\Magento \Framework \DB \Select::COLUMNS )
77
- ->columns (new \Zend_Db_Expr ('CURRENT_TIMESTAMP () - updated_at ' ))
77
+ ->columns (new \Zend_Db_Expr ('UTC_TIMESTAMP () - updated_at ' ))
78
78
->where ('entity_id = ? ' , $ consumerId );
79
79
80
80
return $ connection ->fetchOne ($ select );
You can’t perform that action at this time.
0 commit comments