Skip to content

Commit

Permalink
[PBS-84][Anh Dao] fix: match time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
toki-ai committed Nov 8, 2024
1 parent deac49d commit abf3f44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public PaymentResDTO generatePaymentUrl(long amount, String orderId, String clie
vnp_Params.put("vnp_OrderType", "100000");
vnp_Params.put("vnp_OrderInfo", "Thanh toan don hang:" + orderId);

Calendar cld = Calendar.getInstance(TimeZone.getTimeZone("Etc/GMT+7"));
Calendar cld = Calendar.getInstance(TimeZone.getTimeZone("Asia/Ho_Chi_Minh"));
SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
String vnp_CreateDate = formatter.format(cld.getTime());

Expand Down

0 comments on commit abf3f44

Please sign in to comment.