Nope, FILETIME is not timezone aware...  

Want to hear something even stranger?  When you ask for a FILETIME to be 
resolved, it uses the "is daylight savings time?" setting from *now*, not the 
date on the file to adjust the timestamp.

Want to hear something even stranger than that?  The C runtime library function 
_stat() has the same daylight savings time behavior because underneath it's all 
driven by the FILETIME behavior.

When I reported it as a bug to Microsoft, it took months to get to the bottom 
of it.  Finally got to one of the OS engineers who said #1 was because some OS 
processes were checking mod timestamps on logs a lot, and it was too much of a 
performance drag to re-calculate the DST offset every time.

On #2, they said "Well, people are depending on it working this way now"

My response was The answer to the question "When was FDR's last Fireside chat?" 
shouldn't be "Depends...  what day is it today?"

Mark


-----Original Message-----
From: Christopher Painter [mailto:chr...@iswix.com] 
Sent: Wednesday, September 28, 2011 10:59 AM
To: General discussion for Windows Installer XML toolset.; General discussion 
for Windows Installer XML toolset.
Subject: Re: [WiX-users] Strange behavior with date modifying of installed files

I did some googling but had decided not to post since I'm not an expert.  I 
found some doco in MSDN describing a structure with Date and Time fields 
and a note saying that it's generally date modified but that the meaning is 
up to the application.  Nothing in the datatype seemed to be UTC aware.


I also found some SDK doco down in DTF describing date time members for 
local and and UTC but I suspect that's just translating the time provided 
and then applying it to the CAB at which point probably becomes lossy.


An interesting thought excercise would be to use InstallShield and WiX to 
consume the same set of files and deploy them to a VM and see if they 
express differently.   Then again, I don't really find it a problem one way 
or the other as datetimes are meaningless to me.  I care about version 
numbers and file hashes.

----------------------------------------

From: "Rob Mensching" <r...@robmensching.com>

Sent: Wednesday, September 28, 2011 9:19 AM

To: "General discussion for Windows Installer XML toolset." 
<wix-users@lists.sourceforge.net>

Subject: Re: [WiX-users] Strange behavior with date modifying of installed 
files


I believe this is a limitation of .cab files that store the times as

FILETIME. Timezone is not stored. I'd be happy to be wrong if someone 
could

show otherwise.


On Wed, Sep 28, 2011 at 4:53 AM, Grigory Konovalov <

grigory.konova...@confirmit.com> wrote:


> Why WIX save local time for files, but doesn't save UTC time?

> For example, a file has 10.00 time modified in a server with UTC+01.00 
(it

> is 9.00 in UTC time).

> I create msi on this server and install it on a new server with 
UTC-01.00.

> The file have 10.00 time modified on the new server after installation, 
but

> there should be 8.00 time (real date creation 9.00 in UTC minus 1 hour 
of

> time zone).

> If we change UTC on the new server to UTC+01.00 like on the first 
server,

> modified time will change to 12.00 (it is 11.00 in UTC time).

> Therefore modified date increase on 2 hours.

> I guess, it is strange.

>

> Grigory Konovalov

> Software Engineer

> grigory.konova...@confirmit.com<mailto:grigory.konova...@confirmit.com> 
|

> Phone +7 4852 586 924 | Mobile +7 902 221 6886

>

> Confirmit(r) [everywhere]

>

> Software for Market Research and Enterprise Feedback Management

>

> Confirmit Ltd., 56 Lisizina str., Yaroslavl, Russia, 150014

> www.confirmit.com<http://www.confirmit.com/> | Main/fax +7 4852 586 924; 
+7

> 4852 586 925

>

> The information contained in this email message may be privileged,

> confidential or exempt from disclosure under applicable law. If you are 
not

> the intended recipient, you are hereby notified that any use, 
dissemination,

> distribution or copying of this transmission is strictly prohibited. If 
you

> have received this communication in error, or if any problems occur with

> transmission, please notify the sender immediately.

>

>

> 
----------------------------------------------------------------------------
--

> All the data continuously generated in your IT infrastructure contains a

> definitive record of customers, application performance, security

> threats, fraudulent activity and more. Splunk takes this data and makes

> sense of it. Business sense. IT sense. Common sense.

> http://p.sf.net/sfu/splunk-d2dcopy1

> _______________________________________________

> WiX-users mailing list

> WiX-users@lists.sourceforge.net

> https://lists.sourceforge.net/lists/listinfo/wix-users

>

>


-- 

virtually, Rob Mensching - http://RobMensching.com LLC

----------------------------------------------------------------------------
--

All the data continuously generated in your IT infrastructure contains a

definitive record of customers, application performance, security

threats, fraudulent activity and more. Splunk takes this data and makes

sense of it. Business sense. IT sense. Common sense.

http://p.sf.net/sfu/splunk-d2dcopy1

_______________________________________________

WiX-users mailing list

WiX-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to