summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_message.c2
-rw-r--r--src/lua/lua_task.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/lua/lua_message.c b/src/lua/lua_message.c
index c1b7a734f..70e33981b 100644
--- a/src/lua/lua_message.c
+++ b/src/lua/lua_message.c
@@ -191,8 +191,6 @@ lua_message_get_date (lua_State * L)
if (obj != NULL) {
g_mime_message_get_date (obj, &msg_time, &offset);
- /* Convert result to GMT */
- msg_time -= (offset / 100) * 3600;
lua_pushnumber (L, msg_time);
}
else {
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 0931eb13c..2bb13083b 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -1074,7 +1074,7 @@ lua_task_get_date (lua_State *L)
if (task != NULL) {
/* Get GMT date and store it to time_t */
- task_time = mktime (gmtime (&task->tv.tv_sec));
+ task_time = task->tv.tv_sec;
lua_pushnumber (L, task_time);
}
else {