Closed JKeita closed 11 months ago
Hello,
I encountered an issue with the following code:
t := c.ParseByFormat("1699677240", "U").Timestamp() fmt.Println(t)
golang version: 1.21
carbon version: v2.2.14 time zone:PRC
I expected to get:
1699677240
But I actually get:
0
Thanks!
It will fix in next version, currently you can use the following method:
t := c.CreateFromTimestamp(1699677240).Timestamp() fmt.Println(t) // 1699677240
v2.3.1 has been released
Hello,
I encountered an issue with the following code:
golang version: 1.21
carbon version: v2.2.14 time zone:PRC
I expected to get:
But I actually get:
Thanks!