From 8edc66f8af1d96f73586cc98debc4ebfa5e9623e Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Sun, 2 Jul 2017 21:18:30 +1000 Subject: [PATCH] using time layout --- crmEntity_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crmEntity_test.go b/crmEntity_test.go index 70f4861..187b29b 100644 --- a/crmEntity_test.go +++ b/crmEntity_test.go @@ -11,10 +11,11 @@ import ( func TestCrmCreateEntity(t *testing.T) { e := crmdLead{} - e.FirstName = "ff" + time.Now().Format("2006-jan-02 03:04:05") + e.FirstName = "ff" + time.Now().Format(getCrmTimeLayout()) e.LastName = "ll" e.Password = "pp" e.Status = "New" + e.WechatHitxyID = time.Now().Format(getCrmTimeLayout()) b, _ := json.Marshal(e) //Create