Code Monkey home page Code Monkey logo

Comments (5)

gouguoyin avatar gouguoyin commented on August 25, 2024

v2.3.1 will support tz tag and will be released soon

from carbon.

gouguoyin avatar gouguoyin commented on August 25, 2024

v2.3.1 has been released

from carbon.

liaohongxing avatar liaohongxing commented on August 25, 2024

example code , test fail

PS F:\Software\time-test> go run .
panic: time: missing Location in call to Time.In

goroutine 1 [running]:
time.Time.In(...)
        C:/Program Files/Go/src/time/time.go:1146
github.com/golang-module/carbon/v2.Carbon.ToStdTime(...)
        C:/Users/DELL/go/pkg/mod/github.com/golang-module/carbon/[email protected]/outputer.go:822
github.com/golang-module/carbon/v2.Carbon.Timezone({{0x0, 0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0, 0x0, 0x0, {0x0, ...}})
        C:/Users/DELL/go/pkg/mod/github.com/golang-module/carbon/[email protected]/getter.go:381 +0xee
main.main()
        F:/Software/time-test/main.go:22 +0xd8
exit status 2

from carbon.

gouguoyin avatar gouguoyin commented on August 25, 2024

Usage error, must load the tag through the LoadTag method before json.Marshal or json.Unmarshal, please refer to README.md
image

from carbon.

liaohongxing avatar liaohongxing commented on August 25, 2024

It's already working , thinks !

from carbon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.