Commit df835b54 authored by Chris T's avatar Chris T

Ensure that time is loaded back into the send request date if mmsd is closed.

parent 557e2d4e
......@@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#define _XOPEN_SOURCE 700
#ifdef HAVE_CONFIG_H
#include <config.h>
......@@ -35,6 +36,8 @@
#include <glib.h>
#include <glib/gstdio.h>
#include <gdbus.h>
#include <time.h>
#include <stdio.h>
#include <gweb/gweb.h>
......@@ -1337,8 +1340,7 @@ static gboolean load_message_from_store(const char *service_id,
read_status = g_key_file_get_boolean(meta, "info", "read", NULL);
datestr = g_key_file_get_string(meta, "info", "date", NULL);
//strptime(datestr, "%Y-%m-%dT%H:%M:%S%z", &tm);
//TODO: Need to fix this and reimport tm to time_t
strptime(datestr, "%Y-%m-%dT%H:%M:%S%z", &tm);
data_path = mms_store_get_path(service_id, uuid);
if (data_path == NULL)
......@@ -2646,4 +2648,4 @@ void __mms_service_cleanup(void)
if (g_dbus_unregister_interface(connection, MMS_PATH,
MMS_MANAGER_INTERFACE) == FALSE)
mms_error("Failed to unregister manager interface");
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment