From cb76e4da84c61609c13e84c922f14a27b8348a36 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 13 May 2025 18:34:32 +0200 Subject: Add plist_new_unix_date, plist_get_unix_date_val, plist_set_unix_date_val functions These functions work with int64_t values representing a UNIX timestamp instead of using the 'MAC epoch'. They should be used instead of plist_new_date, plist_get_date_val, and plist_set_date_val, which are now marked deprecated and might be removed in a future version of libplist. --- src/Node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Node.cpp') diff --git a/src/Node.cpp b/src/Node.cpp index 0bd428a..1043b31 100644 --- a/src/Node.cpp +++ b/src/Node.cpp @@ -73,7 +73,7 @@ Node::Node(plist_type type, Node* parent) : _parent(parent) _node = plist_new_data(NULL,0); break; case PLIST_DATE: - _node = plist_new_date(0,0); + _node = plist_new_unix_date(0); break; case PLIST_ARRAY: _node = plist_new_array(); -- cgit v1.1-32-gdbae