aboutsummaryrefslogtreecommitdiff
path: root/plugins/signal-protocol/src
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-08-31 18:40:58 +0200
committerfiaxh <git@mx.ax.lt>2017-08-31 18:54:38 +0200
commitd2a5287effcf60a44084568a37c9c9091d336178 (patch)
tree392d24930cf5c635f114c3e4f30bfce930edf76f /plugins/signal-protocol/src
parenta257b163376174e4f5efcbc82c9fdd56463c3191 (diff)
downloaddino-d2a5287effcf60a44084568a37c9c9091d336178.tar.gz
dino-d2a5287effcf60a44084568a37c9c9091d336178.zip
Use utc time everywhere
Diffstat (limited to 'plugins/signal-protocol/src')
-rw-r--r--plugins/signal-protocol/src/context.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/signal-protocol/src/context.vala b/plugins/signal-protocol/src/context.vala
index 38ac3662..c36bf010 100644
--- a/plugins/signal-protocol/src/context.vala
+++ b/plugins/signal-protocol/src/context.vala
@@ -34,7 +34,7 @@ public class Context {
}
public SignedPreKeyRecord generate_signed_pre_key(IdentityKeyPair identity_key_pair, int32 id, uint64 timestamp = 0) throws Error {
- if (timestamp == 0) timestamp = new DateTime.now_local().to_unix();
+ if (timestamp == 0) timestamp = new DateTime.now_utc().to_unix();
SignedPreKeyRecord res;
throw_by_code(Protocol.KeyHelper.generate_signed_pre_key(out res, identity_key_pair, id, timestamp, native_context));
return res;
@@ -98,4 +98,4 @@ public class Context {
}
}
-} \ No newline at end of file
+}