From abf3f4494005d9c224c1a457016db302980d73be Mon Sep 17 00:00:00 2001 From: toki-ai Date: Fri, 8 Nov 2024 23:42:24 +0700 Subject: [PATCH] [PBS-84][Anh Dao] fix: match time zone --- .../java/com/swp/PodBookingSystem/service/PaymentService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/swp/PodBookingSystem/service/PaymentService.java b/src/main/java/com/swp/PodBookingSystem/service/PaymentService.java index c72fa348..bb15c1ea 100644 --- a/src/main/java/com/swp/PodBookingSystem/service/PaymentService.java +++ b/src/main/java/com/swp/PodBookingSystem/service/PaymentService.java @@ -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());