Int2Cat - DriverVer set to incorrect date

Xanx picture Xanx · Jan 3, 2013 · Viewed 8.8k times · Source

I'm trying to develop a driver using Visual Studio 2012, which automatically integrates with WDK.

When I try to build my driver, I receive an error message from Inf2Cat app. It says:

Errors: 2> 22.9.7: DriverVer set to incorrect date (postdated DriverVer not allowed) in \ntleg.inf. The current date (UTC) is 1/3/2013.

In my NTLeg.inf I have:

[Version]
Signature="$WINDOWS NT$"
Class=
ClassGuid=
Provider=
DriverVer=
CatalogFile=NTLeg.cat

So, DriverVerProperty is empty. I tried to fill it with any value, but Inf2Cat reports the same error. I tried to fill it with current, past and future date, the same result. What should I do?

I tried samples provided with WDK and the all are reporting this error.

Answer

James Butler picture James Butler · Jun 9, 2013

When using StampInf to automatically populate DriverVer it uses local time not GMT, but Inf2Cat defaults to verifying in GMT (UTC). See Microsoft comments and suggestions in StampInf documentation http://msdn.microsoft.com/en-us/library/windows/hardware/ff552789(v=vs.85).aspx

Easiest fix is to change your driver package project settings for Inf2Cat to set /uselocaltime. Then the problem goes away!