aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-02-02 13:53:05 +0700
committerShulhan <ms@kilabit.info>2023-02-02 13:53:05 +0700
commitd2211d2109107a80d5c98d2b4660e3646f0f4616 (patch)
tree42687983dc700878e7d74c3109512434a5eda6d1
parenta0b9d6e7826eb46733f75bcde5ec3cc87d0c9c89 (diff)
downloadduitku-d2211d2109107a80d5c98d2b4660e3646f0f4616.tar.xz
all: replace time.DateTime with static string
The time.DateTime constant available since in Go 1.20.
-rw-r--r--payment_method.go4
1 files changed, 3 insertions, 1 deletions
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.