Skip to content

v2.5.0

Compare
Choose a tag to compare
@gouguoyin gouguoyin released this 25 Nov 09:30
· 69 commits to master since this release

What's Changed

  • Change repository url from github.com/golang-module/carbon to github.com/dromara/carbon
  • Add hungarian translation #39 by @kenlas in #252
  • Add support for string and []byte types when parsing database data in Scan method #251
  • Retranslate README.jp by @You-saku in #259
  • Fix DiffInMonths() method bug #255
  • Fix Japanese translation by @nkmr-jp in #254
  • Replace Lock() with RLock(),Unlock() with RUnlock() to optimize performance by @ritbrz in #253
  • Replace ToDateTimeStruct() with NewDateTime(),ToDateTimeMilliStruct() with NewDateTimeMilli(),ToDateTimeMicroStruct() with NewDateTimeMicro(),ToDateTimeMilliNanoStruct() with NewDateTimeNano()
  • Replace ToDateStruct() with NewDate(),ToDateMilliStruct() with NewDateMilli(),ToDateMicroStruct() with NewDateMicro(),ToDateNanoStruct() with NewDateNano()
  • Replace ToTimeStruct() with NewTime(),ToTimeMilliStruct() with NewTimeMilli(),ToTimeMicroStruct() with NewTimeMicro(),ToTimeNano()Struct with NewTimeNano()
  • DateTime, DateTimeXXX,Date,DateXXX, Time,TimeXXX structures implement Scan,Value,MarshalJSON,UnmarshalJSON interfaces
  • Bump codecov/codecov-action from 4 to 5 by @dependabot in #256
  • Unified use of global default timezone defaultTimezone when UnmarshalJSON

New Contributors

Full Changelog: v2.4.1...v2.5.0