Skip to content

Releases: dromara/carbon

v2.2.12

02 Nov 03:37
Compare
Choose a tag to compare
  • Remove print Info in IsNow method #193
  • Add Dutch language support #191
  • Add index to test case in test file

v2.2.11

16 Oct 07:48
Compare
Choose a tag to compare
  • Add judgment when setting the testing now time

v2.2.10

10 Oct 02:11
Compare
Choose a tag to compare
  • Recovery type such as DateTime, DateTimeXXX,Date, DateXXX struct

v2.2.9

09 Oct 02:32
Compare
Choose a tag to compare
  • Fix Age method calculation error #184
  • Fix ukrainian translation error #185
  • Change type such as DateTime, DateTimeXXX struct

v2.2.8

21 Sep 07:38
Compare
Choose a tag to compare
  • Rename isTestNow method to hasTestNow
  • Fixe the wrong type of automatically update time when using gorm #182
  • Add Time struct and ToTimeStruct method
  • Add TimeMilli struct and ToTimeMilliStruct method
  • Add TimeMicro struct and ToTimeMicroStruct method
  • Add TimeNano struct and ToTimeNanoStruct method

v2.2.7

12 Sep 12:43
Compare
Choose a tag to compare
  • Fix Value method loses time zone in database.go file bug
  • Add ToXXXStruct series methods
  • Add reference project link
  • Remove debug print information
  • Remove README.md.md file
  • Update README file

v2.2.6

06 Sep 15:44
Compare
Choose a tag to compare
  • Fix bug in DiffInYears and Agemethods #181
  • Fix bug with lost time zone after json.Unmarshal #178
  • Move CreateFromStdTime method from carbon.go to creator.go
  • Move ToStdTime method from carbon.go to outputer.go
  • Move deprecated methods as FromStdTime, Time2Carbon and Carbon2Time to deprecated.go
  • Update stretchr/testify to v1.8.4

v2.2.5

25 Aug 09:53
Compare
Choose a tag to compare
  • Fix thread unsafe bugs caused by concurrent reads and writes in some methods #180
  • Add testing series methods such as SetTestNowClearTestNowIsTestNow

v2.2.4

22 Aug 05:08
Compare
Choose a tag to compare
  • Fix thread unsafe bugs caused by concurrent reads and writes in some methods #180
  • Fix DiffInMonths method bug #165
  • Add CreateFromStdTime method, FromStdTime, Time2Carbon , Carbon2Time methods add Deprecated flag and will be removed in the future
  • Add Iranian language support #175
  • Increase unit testing coverage to 100%

v2.2.3

07 Jan 14:28
Compare
Choose a tag to compare
  • Add FromStdTime alias method of Time2Carbon method and ToStdTime alias method of Carbon2Time method, Time2Carbon and Carbon2Time will be removed in the future
  • Fix Format method W and N symbol output error bug for issue #163
  • Fix Document Errors