Skip to content

Commit 3278d67

Browse files
fix: missing 'Created On:' date/time treeview
The treeview with all the torrent data is missing the 'Created On:' value. [ci skip]
1 parent 36b5c8d commit 3278d67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/code/controler_treeview_torrent_data.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ procedure Tcontroler_treeview_torrent_data.AddOneTorrentFileDecoded(
285285
var
286286
CountFiles: integer;
287287
TorrentFileNameStr, TrackerStr: UTF8String;
288-
DateTimeStr: string;
289288
TreeNodeTorrent, TreeNodeFiles, TreeNodeTrackers, TreeNodeInfo: TTreeNode;
290289

291290
begin
@@ -342,7 +341,8 @@ procedure Tcontroler_treeview_torrent_data.AddOneTorrentFileDecoded(
342341
DecodeTorrent.Comment);
343342
FTreeViewFileContents.Items.AddChild(TreeNodeInfo, 'Info Hash: ' +
344343
DecodeTorrent.InfoHash);
345-
FTreeViewFileContents.Items.AddChild(TreeNodeInfo, 'Created On: ' + DateTimeStr);
344+
FTreeViewFileContents.Items.AddChild(TreeNodeInfo, 'Created On: ' +
345+
DateTimeToStr(DecodeTorrent.CreatedDate));
346346
FTreeViewFileContents.Items.AddChild(TreeNodeInfo, 'Created By: ' +
347347
DecodeTorrent.CreatedBy);
348348
FTreeViewFileContents.Items.AddChild(TreeNodeInfo, 'Piece Lenght: ' +

0 commit comments

Comments
 (0)