diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2001-11-08 13:35:13 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2001-11-08 13:35:13 (GMT) |
commit | 7957dc20af11fd6b12c483634f7e447d2b363145 (patch) | |
tree | f2ffe0bc876d0aaedb8611ef45dea0368ebd6c97 /src/H5Omtime.c | |
parent | 55de078e47bf7837fc7ecff1ef8d4ff916e72fbf (diff) | |
download | hdf5-7957dc20af11fd6b12c483634f7e447d2b363145.zip hdf5-7957dc20af11fd6b12c483634f7e447d2b363145.tar.gz hdf5-7957dc20af11fd6b12c483634f7e447d2b363145.tar.bz2 |
[svn-r4595]
Purpose:
1. temporarily fixed mtime test when daylight saving changes on windows.
2. move H5_inline defination for win32 to windows H5pubconf.h at H5private.h.
Description:
1. the mtime test is not working when the daylight saving ends. Hard-coded back to the correct time. Need to find a universal solution later.
2. Move H5_inline defination for win32 at H5private.h into windows specificed H5pubconf.h so that windows maintenance can be more easy to handle.
Solution:
see above.
Platforms tested:
windows 2000, confirmed at Linux Red Hat 6.2.
Diffstat (limited to 'src/H5Omtime.c')
-rw-r--r-- | src/H5Omtime.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Omtime.c b/src/H5Omtime.c index ee19d56..5cd4ea6 100644 --- a/src/H5Omtime.c +++ b/src/H5Omtime.c @@ -154,7 +154,10 @@ H5O_mtime_decode(H5F_t UNUSED *f, const uint8_t *p, ftime(&timebuffer); tz = timebuffer.timezone; - the_time -= tz * 60 - 3600 * _daylight; + /* daylight is not handled properly. Currently we just hard-code + the problem. */ + the_time -= tz*60; + /*the_time -= tz * 60 - 3600 * _daylight;*/ } #else /* |