🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10676

Re: FindFirstFile, FILETIME, and Daylight Savings

#10676
From: Bob Gonder
Date: Thu, 08 Apr 2004 00:34
27 lines
2219 bytes
Bob Gonder wrote:

>That's a thought. I could add a FAT/NTFS switch to the startup screen.
>Then use  GetTimeZoneInformation( ) for adjustment info.

It's Working!
Come October, for the first time in 6 years, it will make the
transition without trouble.

Thank you for the pushes in the right directions.


const DWORDLONG DayLightAdjust = 0x000000861c46800;
BOOL DayLight = (TIME_ZONE_ID_DAYLIGHT==GetTimeZoneInformation(&tzi));
	GetVolumeInformation(.....)
BOOL FAT = (0==memcmp("FAT",FileSystemName,3));

	if( DayLight && FAT )
/*doesn't compile, but you get the idea */
		fcb.ftCreationTime += DayLightAdjust;	


>There might be another issue running from XP over the network to the
>'98 files  Does XP "fix" the dates again? Wouldn't be surprised.

No, XP returns different times depending on if the 98 host is in DST
or not. So, above code will still work.
Technical Details
Message-ID: <8r5970lrfhn1nfkm87ltl5e1hb53ds7vb5@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <1c8170tliot8sh3tp2gfk0v61as6l3uqti@4ax.com> <ak8rt8ua80v1$.zw3u0r86c55l.dlg@40tude.net> <ma6370d3jao3sjn3craod7n6jo4eioraq8@4ax.com> <8ptgrgaex8m6$.lkys4jypdxw.dlg@40tude.net> <bnn57013vvtk88ev5p544m0tq1gbuair87@4ax.com> <oje67018926bqmcugacq6jket2chjq651v@4ax.com> <151n6244bvfwe.1n0u0c4duftm2$.dlg@40tude.net> <0ec8705qs7mvth1hfnc1t6accj39q6m5j6@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2bff2a2748be0347
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-07 17:39:54 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: FindFirstFile, FILETIME, and Daylight Savings
Date: Wed, 07 Apr 2004 17:34:46 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <8r5970lrfhn1nfkm87ltl5e1hb53ds7vb5@4ax.com>
References: <1c8170tliot8sh3tp2gfk0v61as6l3uqti@4ax.com> <ak8rt8ua80v1$.zw3u0r86c55l.dlg@40tude.net> <ma6370d3jao3sjn3craod7n6jo4eioraq8@4ax.com> <8ptgrgaex8m6$.lkys4jypdxw.dlg@40tude.net> <bnn57013vvtk88ev5p544m0tq1gbuair87@4ax.com> <oje67018926bqmcugacq6jket2chjq651v@4ax.com> <151n6244bvfwe.1n0u0c4duftm2$.dlg@40tude.net> <0ec8705qs7mvth1hfnc1t6accj39q6m5j6@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 4.228.219.56
X-Trace: newsgroups.borland.com 1081384488 4.228.219.56 (7 Apr 2004 17:34:48 -0800)
Lines: 29
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail