Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

紧急问题,Format方法失效 #42

Closed
da4z opened this issue Mar 2, 2021 · 5 comments
Closed

紧急问题,Format方法失效 #42

da4z opened this issue Mar 2, 2021 · 5 comments
Labels
Bug Report a reproducible bug or regression Fixed Bug fixed

Comments

@da4z
Copy link

da4z commented Mar 2, 2021

Format方法返回空字符串 ,系统全崩 。

package main

import (
	"fmt"

	"github.com/golang-module/carbon"
)

func main() {
	s := carbon.Now().Format("Y-m-d H:i:s")
	fmt.Println("==============", s)
}
@gouguoyin
Copy link
Collaborator

image
image

@da4z
Copy link
Author

da4z commented Mar 2, 2021

企业微信截图_20210302103614

@da4z
Copy link
Author

da4z commented Mar 2, 2021

我该用什么代码能跟您环境一样 。
version: v1.3.3
golang: v1.16

@gouguoyin
Copy link
Collaborator

找到原因了,是因为作为第三方包使用时不能直接读取子目录里的json文件,正在修复,你可以暂时把lang目录复制到当前项目下就可以正常使用了

@gouguoyin
Copy link
Collaborator

v1.3.4版本已修复

@gouguoyin gouguoyin added Bug Report a reproducible bug or regression Fixed Bug fixed labels Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report a reproducible bug or regression Fixed Bug fixed
Projects
None yet
Development

No branches or pull requests

2 participants