无法解析位置24(6)上的时间字符串(2018-03-10 13:08:09.-708656):意外字符 [英] Failed to parse time string (2018-03-10 13:08:09.-708656) at position 24 (6): Unexpected character

查看:63
本文介绍了无法解析位置24(6)上的时间字符串(2018-03-10 13:08:09.-708656):意外字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时会收到此错误,然后它会自动消失.无法跟踪为什么我收到此错误.我认为在会话期满时它是固定的.这是错误屏幕

I am getting this error sometimes then it goes away automatically. Unable to track why I am getting this error. And I think it get's fixed when the session expires. This is the error screen

(1/1) Exception
DateTime::__construct(): Failed to parse time string (2018-03-10 18:06:52.-955808) at position 24 (8): Unexpected character

in Carbon.php (line 408)
at DateTime->__construct('2018-03-10 18:06:52.-955808', object(DateTimeZone))
in Carbon.php (line 408)
at Carbon->__construct('2018-03-10 18:06:52.-955808', null)
in Carbon.php (line 457)
at Carbon::now()
in FileSessionHandler.php (line 70)
at FileSessionHandler->read('SEOHFptNtGSB4YmLTb7IAegTxX6EZcAFGB2wnvPZ')
in Store.php (line 96)
at Store->readFromHandler()
in Store.php (line 86)
at Store->loadSession()
in Store.php (line 70)
at Store->start()
in StartSession.php (line 103)
at StartSession->Illuminate\Session\Middleware\{closure}(object(EncryptedStore))
in helpers.php (line 964)
at tap(object(EncryptedStore), object(Closure))
in StartSession.php (line 104)
at StartSession->startSession(object(Request))
in StartSession.php (line 58)
at StartSession->handle(object(Request), object(Closure))
in Pipeline.php (line 148)

推荐答案

此错误是由于@btl提到的碳更新导致的,如果您添加了库或运行了作曲家更新,那么我在Internet上浏览了一下是问题的根源,如果您有任何旧的laravel项目转到$ root/vendor/nesbot/,您将在其中找到一个carbon文件夹,并将其复制并替换到当前项目中无法正常工作的文件夹,并且它将得到修复.希望我可以将我的Carbon文件夹上传到Google驱动器或其他供您使用的文件.

this error is due to a carbon update as mentioned by @btl i surfed a bit on the internet , if you added a library or ran composer update that would probably be the source of the problem , if you have any old laravel projects go to $root/vendor/nesbot/ , you will find a carbon folder there copy and replace that in your current project that isnt working and it will be fixed.if you want i can upload my carbon folder to google drive or something for you to use.

希望这会有所帮助.

编辑

对于那些没有较旧应用程序的用户,您可以找到可以解决问题的碳文件

for those who dont have older apps , you can find the carbon file which will fix the issue here

这篇关于无法解析位置24(6)上的时间字符串(2018-03-10 13:08:09.-708656):意外字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆