Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mmsd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chris T
mmsd
Commits
df835b54
Commit
df835b54
authored
Jan 16, 2021
by
Chris T
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure that time is loaded back into the send request date if mmsd is closed.
parent
557e2d4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/service.c
src/service.c
+5
-3
No files found.
src/service.c
View file @
df835b54
...
...
@@ -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
Chris T
@kop316
mentioned in commit
1b2c53db
·
Feb 18, 2021
mentioned in commit
1b2c53db
mentioned in commit 1b2c53db88192db57f1c97c3b5cbda389cd0ab5d
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment