You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@asceresini I'm not sure that it's within ActiveMerchant's scope to try to nail expired exactly; when a card actually expires is probably time zone dependent and somewhat up to the issuer regardless. What trouble did this cause you?
We're currently experiencing an issue with credit card expiration that results from the difference between UTC time and current local time.
Referring to the code below, right now our local time is UTC+11. At 10:00:00AM (+1100), 1 April 2014, Time.now.utc returns 23:00:00 31 March 2014 UTC.
When the card expires in March 2014,
expiration
returns a time that is 23:59:59 31 March 2014 UTC.A call to
expired?
thus returns false, however in local time, the card has expired (since we're now in April).This seems like a bug that exists for the time difference between our local time and UTC time?
Our version: activemerchant (1.20.4)
Code
The text was updated successfully, but these errors were encountered: