Files
loongoffice/svtools/source
Stephan Bergmann 34ad8590e9 Compare normalized nanosec timestamps in TemplateFolderCacheImpl::equalStates
After 9830fd36dbdb72c79703b0c61efc027fba793c5a "date/time IDL datatypes
incompatible change", 4fa553e4071a0ba4981a690429903c4e68607864 "fdo#62088: Fix
regression introduced by the DateTime incompatible change." had fixed
writing/reading timestamps to/from the .templdir.cache file, by cutting from
nanosecond precision back to 1/100th-second precision.  But in the call to
TemplateFolderCacheImpl::equalState, the (cut-down) timestamps read from the
.templdir.cache file were then compared against (not--cut-down) timestamps
reported by the filesystem, potentially causing equalState to erroneously return
false.  (This is only relevant on Windows, as the non-Windows implementation in
sal/osl/unx/file_stat.cxx always sets Nanonsec = 0 for all the timestamps it
reports.)

Change-Id: I34b99024531d4d2e49bb53450e8f6fd13397f237
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184505
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
(cherry picked from commit f5cca58c2ea765b08cbcc771deb4fa75ead1870e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184541
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2025-04-24 16:57:39 +02:00
..
2024-05-13 19:13:53 +02:00
2024-05-13 19:13:53 +02:00
2024-05-13 19:13:53 +02:00
2024-06-26 09:01:02 +02:00
2024-05-13 19:13:53 +02:00