VNPAY
vrain1642002
HOBBYOP

2 years ago

My backend API can pay in local host but when i deploy i can't pay.I think because location.My location in GMT +7 ( Calendar cld = Calendar.getInstance(TimeZone.getTimeZone("Etc/GMT+7")) but location deploy is US Weatst.I try to change location in my back end but it no work.Can help me?

1 Replies

brody
EMPLOYEE

2 years ago

The time zone is in UTC and should not be tampered with as doing time in UTC on the backend is standard practice, you then only convert it to the user's desired time zone for display purposes.


Loading...