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

自动时间戳 错误 #50

Closed
caicaispace opened this issue Jan 7, 2019 · 1 comment
Closed

自动时间戳 错误 #50

caicaispace opened this issue Jan 7, 2019 · 1 comment

Comments

@caicaispace
Copy link

Uncaught Error: Class 'think\model\concern\DateTime' not found in /vendor/topthink/think-orm/src/model/concern/TimeStamp.php:49

建议修改为

if ($timestamp) { $dateTime = new \DateTime(); $dateTime->setTimestamp($time); } else { $dateTime = new \DateTime($time); }

@liu21st
Copy link
Member

liu21st commented Jan 8, 2019

已经修正

@liu21st liu21st closed this as completed Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants