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

seem wrong with me #99

Open
justmd5 opened this issue Feb 15, 2017 · 1 comment
Open

seem wrong with me #99

justmd5 opened this issue Feb 15, 2017 · 1 comment

Comments

@justmd5
Copy link

justmd5 commented Feb 15, 2017

now time is :

php -r "echo date('Y-m-d H:i:s'),PHP_EOL;"

2017-02-15 09:52:42

php -r "echo time(),PHP_EOL;" 

1487123624

here is the code :

require  __DIR__."/vendor/autoload.php";
$m = new \Moment\Moment("2017-02-21 09:40:22", 'PRC');
\Moment\Moment::setLocale('zh_CN');
echo $m->calendar(),PHP_EOL;

result is:
本周二 09:40
but the result should be "下周二",please have a look,thanks!

@fightbulc
Copy link
Owner

Can you check what's going wrong? I don't speak any Chinese.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants