简体   繁体   中英

composer.lock timestamp format

I'm trying to track down the php setting that is causing diffs in my composer.lock file.

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.

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 selfupdate

or maybe

sudo composer selfupdate

depending on how Composer is installed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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