Skip to content

Commit

Permalink
Fix WebDAV preserve time
Browse files Browse the repository at this point in the history
  • Loading branch information
ssvine committed Apr 9, 2024
1 parent 9f5f6b5 commit 6f09fde
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/WebDAVFileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1428,11 +1428,7 @@ void TWebDAVFileSystem::Source(
UnicodeString LastModified =
FormatDateTime(L"ddd, d mmm yyyy hh:nn:ss 'GMT'", ModificationUTC, FormatSettings);
#endif // defined(__BORLANDC__)
uint16_t Y, M, D, H, NN, S, MS;
const TDateTime & DateTime = ModificationUTC;
DateTime.DecodeDate(Y, M, D);
DateTime.DecodeTime(H, NN, S, MS);
const UnicodeString LastModified = FORMAT("%04d, %d %02d %04d %02d:%02d%02d 'GMT'", D, D, M, Y, H, NN, D);
const UnicodeString LastModified = DateTimeToString(L"%a, %#d %b %Y %H:%M:%S GMT", ModificationUTC);

const UTF8String NeonLastModified(LastModified);
// second element is "NULL-terminating"
Expand Down

0 comments on commit 6f09fde

Please sign in to comment.