]> wimlib.net Git - wimlib/blobdiff - src/xml.c
Cleanup timestamp conversion code
[wimlib] / src / xml.c
index 4617e2ab4cbd6fa8a3e1bec379ccb33e6e1fcfd7..1dd4d8398a7efa573b3b43c0060126411d283568 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -1261,7 +1261,7 @@ xml_update_image_info(WIMStruct *wim, int image)
        for_dentry_in_tree(wim->image_metadata[image - 1]->root_dentry,
                           calculate_dentry_statistics,
                           image_info);
-       image_info->last_modification_time = get_wim_timestamp();
+       image_info->last_modification_time = now_as_wim_timestamp();
 }
 
 /* Adds an image to the XML information. */
@@ -1292,7 +1292,7 @@ xml_add_image(WIMStruct *wim, const tchar *name)
 
        wim->wim_info = wim_info;
        image_info->index = wim_info->num_images;
-       image_info->creation_time = get_wim_timestamp();
+       image_info->creation_time = now_as_wim_timestamp();
        xml_update_image_info(wim, image_info->index);
        return 0;