Skip to content

Releases: golang-module/carbon

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

v1.7.3

07 Jan 14:16
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

v2.2.2

06 Nov 15:05
Compare
Choose a tag to compare
  • Fix Unmarshal error #161
  • Fix RFC7231Layout bug
  • Add Parse() method's parsing support for now, yesterday and tomorrow
  • Add parse formats
  • Add timezone constants
  • Add Thailand language support #159
  • Add French language support #158
  • Add Bahasa Malaysia language support #157

v1.7.2

06 Nov 15:00
Compare
Choose a tag to compare
  • Fix Unmarshal error #161
  • Fix RFC7231Layout bug
  • Add Parse() method's parsing support for now, yesterday and tomorrow
  • Add parse formats
  • Add timezone constants
  • Add Thailand language support #159
  • Add French language support #158
  • Add Bahasa Malaysia language support #157

v2.2.1

31 Oct 02:06
774f205
Compare
Choose a tag to compare
  • Fix the bug that the translation json file cannot be loaded in window system #111 #139
  • Add Parse() method supported formats
  • Add support for go1.19
  • Add unit test cases
  • Move Now(), Tomorrow(), Yesterday() methods from carbon.go to traveler.go

v1.7.1

31 Oct 01:48
Compare
Choose a tag to compare
  • Fix the bug that the translation json file cannot be loaded in window system #111 #139
  • Add Parse() method supported formats
  • Add support for go1.19
  • Add unit test cases
  • Move Now(), Tomorrow(), Yesterday() methods from carbon.go to traveler.go