简体   繁体   English

composer.lock时间戳格式

[英]composer.lock timestamp format

I'm trying to track down the php setting that is causing diffs in my composer.lock file. 我正在尝试追踪我的composer.lock文件中导致差异的php设置。

Some machines produces: 一些机器生产:

"time": "2017-01-06T14:33:56+00:00"

On another machine: 在另一台机器上:

"time": "2017-01-06 14:33:56"

I commit the composer.lock file in git and these different time format is causing unnecessary diff. 我在git中提交了composer.lock文件,这些不同的时间格式导致了不必要的差异。

Composer changed the internally created timestamp format with version 1.3.0 - if you experience different results, make sure you update all your Composer installations to the most recent version (which is 1.3.1 at the time of writing) by running Composer使用版本1.3.0更改了内部创建的时间戳格式 - 如果您遇到不同的结果,请确保通过运行将所有Composer安装更新到最新版本(在编写本文时为1.3.1)

composer selfupdate

or maybe 或者可能

sudo composer selfupdate

depending on how Composer is installed. 取决于Composer的安装方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM