Skip to content

Commit

Permalink
Merge pull request #159 from Hoang-Nguyen-Huy/PBS-84-Manage-Order-Ame…
Browse files Browse the repository at this point in the history
…nities

[PBS-84][Anh Dao] fix: match time zone
  • Loading branch information
nguyenhcp2004 authored Nov 8, 2024
2 parents 8fa1c36 + abf3f44 commit 931aafa
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 931aafa

Please sign in to comment.