Commit Graph

116 Commits

Author SHA1 Message Date
海亮
21c83670d6
os/gtime: fixed gtime ci fail (#3596) 2024-05-22 20:45:39 +08:00
wln32
0765741d99
os/gtime: fix #3558 time zone issues (#3561) 2024-05-10 17:44:45 +08:00
oldme
3a8f246569
fix: unit test error in PgSQL and SQLite; Unified t.Assert(err, nil) to t.AssertNil(err) (#3356) 2024-03-12 20:05:03 +08:00
John Guo
85c5b7f19e
fix issue #2594 (#3303) 2024-02-05 20:40:03 +08:00
zhangyuyu
16a43bcb6c
Add comment for Format method so that you can know Layout method. (#3230) 2023-12-26 16:19:59 +08:00
光芒伞
e684eae878
Make GTime support multiple formats (#2933) 2023-09-13 19:29:25 +08:00
John Guo
b9e2b05f04
change interface ConvertDataForRecord to ConvertValueForField for package gdb (#2916) 2023-09-04 21:23:54 +08:00
John Guo
574d63b4fd
fix issue #2803 (#2805) 2023-08-01 22:06:10 +08:00
Lonely
c0dff1dc16
add default time check for converting functions of gtime.Time (#2755) 2023-07-19 21:11:54 +08:00
John Guo
6ff4ed84e5
version v2.3.0 (#2392)
* v2.3.0

* up

* up

* up
2023-01-11 19:19:41 +08:00
John Guo
4bb88027d8
improve function SetTimeZone for package gtime (#2389)
* improve logging feature, add LevelPrint configuration for glog.Logger; add package internal/instance

* improve command build

* add default logger for panic message printing if no logger set

* up

* fix scheduler when timer triggers in less than one second for package gcron

* up

* improve function SetTimeZone for package gtime

* improve function SetTimeZone for package gtime

* improve function SetTimeZone for package gtime

* up
2023-01-09 14:36:42 +08:00
黄骞
7cd415b1df
add ut cases for package gtime (#2303)
* add ut cases for package gtime

* add ut cases for package gtime

* add ut cases for package gtime
2022-11-17 19:44:20 +08:00
John Guo
a1b9eca7b6
fix issue #2244 (#2257)
* fix issue #2244

* ut update for package gtime

* golangci updates
2022-11-03 21:17:28 +08:00
houseme
1793bf0863
add golangci feature to guarantee codes quality (#2229) 2022-11-01 20:12:21 +08:00
John Guo
425b31c6fd
improve nil receiver handling for package gtime (#2226)
* improve nil receiver handling for package gtime

* CI updates

* CI updates
2022-10-26 18:37:40 +08:00
John Guo
1acc1b8230
improve DeepCopy feature for bunch of components, especially the container and gtime (#1956) 2022-06-29 14:58:27 +08:00
John Guo
0d7e28ee75 add deep copy feature 2022-05-23 16:51:10 +08:00
John Guo
21f48d3750 improve Unique function performance for normal arrays 2022-03-30 14:32:16 +08:00
John Guo
f670c24e2c fix issue #1681 2022-03-21 22:24:59 +08:00
John Guo
546b6b1724 t.Assert(err, nil) -> t.AssertNil(err) 2022-03-10 11:36:40 +08:00
John Guo
04eb654133 add error stack for internal error printing 2022-01-28 14:51:49 +08:00
John Guo
d322e67117 fix string print for time only gtime.Time; improve package drivers 2022-01-27 12:04:46 +08:00
John Guo
e90f72b538 improve UT cases for package gtime 2022-01-19 18:23:04 +08:00
John Guo
9efc2894d4 improve UT cases for package gtime 2022-01-19 18:18:30 +08:00
John Guo
07c5ce0bbc improve UT cases for package gtime 2022-01-19 17:26:39 +08:00
John Guo
3bbbe1db9c change pointer receiver that implements interface MarshalJSON to struct receiver for all packages 2022-01-19 16:55:57 +08:00
John Guo
d7b94428ae fix issue in json marshal for package egtime 2022-01-19 16:44:58 +08:00
John Guo
48c5c1e5a8 change errors wrapped by gerror.Wrap with error stack info for all packages 2021-12-23 00:09:00 +08:00
John Guo
ce93b625d4 change errors wrapped by gerror.Wrap with error stack info for all packages 2021-12-21 22:59:14 +08:00
ansionfor
8f0c0337c5 update gtime example output 2021-11-30 23:10:02 +08:00
ansionfor
0340fb7124 update gtime example 2021-11-30 22:53:28 +08:00
ansionfor
6acb2f46e6 update gtime example 2021-11-29 10:14:55 +08:00
ansionfor
578d8218bd go fmt 2021-11-29 10:08:12 +08:00
heansheng
f754bdbb0e
Update gtime_z_example_time_test.go 2021-11-29 10:05:52 +08:00
ansionfor
3ff77a87d4 add json 2021-11-28 23:57:49 +08:00
ansionfor
2ead7606b2 go fmt 2021-11-28 23:41:41 +08:00
heansheng
1fdf85e3b8
update MarshalJSON example 2021-11-28 23:36:21 +08:00
John Guo
57ccc13e0c unit testing files renaming 2021-11-17 23:20:58 +08:00
houseme
4fa2a879d7 [feature] improve code gview 2021-11-15 20:49:02 +08:00
houseme
b59ed1b943 Improved import, by group improt. 2021-11-14 15:37:24 +08:00
ansionfor
15deeb19b0 go fmt 2021-11-13 23:48:47 +08:00
ansionfor
cfa3d817af update gtime example 2021-11-13 23:16:18 +08:00
ansionfor
50ad3f0f26 go fmt 2021-11-11 17:49:43 +08:00
ansionfor
da659817c5 complete gtime example 2021-11-11 17:41:31 +08:00
John Guo
fa5499373a replace char <xxx> to ;add GetWithEnv/GetWithCmd fuctions for package gcfg 2021-10-21 18:22:47 +08:00
John Guo
1bc0635f8b version 2 2021-10-11 21:41:56 +08:00
John Guo
993bf897cf remove deprecated functions; refract package gjson 2021-09-27 22:47:39 +08:00
John Guo
df09d8c604 refract package ghttp/gredis/glog 2021-09-27 21:27:24 +08:00
jianchenma
01a3dd1eb0 add function gerror.HasStack; rename all api* interfaces to i* 2021-09-17 19:26:56 +08:00
John Guo
73d2b7ed06 fix issue #1387 2021-08-30 22:26:02 +08:00