From d2211d2109107a80d5c98d2b4660e3646f0f4616 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Thu, 2 Feb 2023 13:53:05 +0700 Subject: all: replace time.DateTime with static string The time.DateTime constant available since in Go 1.20. --- payment_method.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/payment_method.go b/payment_method.go index 9dffcda..8f952ff 100644 --- a/payment_method.go +++ b/payment_method.go @@ -13,7 +13,9 @@ import ( const ( // PaymentMethodDatetimeLayout define the date and time format for // PaymentMethod.DateTime. - PaymentMethodDatetimeLayout = time.DateTime + // + // TODO: replace with time.DateTime once the go version is 1.20. + PaymentMethodDatetimeLayout = `2006-01-02 15:04:05` ) // PaymentMethod contains request for client MerchantPaymentMethod. -- cgit v1.3