DriverVer set to a date in the future -解决

DriverVer set to a date in the future -解决 问题1 正在生成代码... 1 Sparkle.vcxproj - D:\data\code\projects\Sparkle\x64\Debug\Sparkle.sys 1 Done Adding Additional Store 1 Successfully signed: D:\data\code\projects\Sparkle\x64\Debug\Sparkle.sys 1 1 ........................ 1 Signability test failed. 1 1 Errors: 1 22.9.7: DriverVer set to a date in the future (postdated DriverVer not allowed) in Sparkle\sparkle.inf. 1 1 Warnings: 1 None 1x64\Debug\inf2catOutput.log : Inf2Cat error -2: Inf2Cat, signability test failed. Double click to see the tool output.莫名其妙出现的问题DriverVer填过去、现在、未来都不行气笑了。Inf2Cat默认使用的是UTC 00:00也就是世界协调时作为基准。但是如果你不是英国人比如你在UTC 08:00时区它就会认为你将时间设置在了未来的八小时…也就是说如果你是在UTC 08:00时区的凌晨 0 点到早上 8 点之间编译的此时你的本地时间是 7月17日但 UTC 时间还是 7月16日。StampInf 写入的是未来的 17号而 Inf2Cat 默认参考 UTC 认为今天是 16号于是判定 17号是未来的日期立即报错。我之前恰好没有在这个时间段编译反而没事。解决点击项目属性将Inf2Cat中Use Local Time选择是 / Yes附偶然有兴致结果熬夜还要被微软制裁。我看了一下这个问题似乎还是古董级的真不不得不再说一句微软自己项目的模版给的默认配置都能出问题这真是没话说了…