[shotwell] Remove one use of time_t
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Remove one use of time_t
- Date: Mon, 17 Feb 2020 19:57:59 +0000 (UTC)
commit 0051a274f48755d5939ac9d80effafdf456c278b
Author: Jens Georg <mail jensge org>
Date: Mon Feb 10 21:50:55 2020 +0100
Remove one use of time_t
src/Debug.vala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/Debug.vala b/src/Debug.vala
index f159b0d6..a4104232 100644
--- a/src/Debug.vala
+++ b/src/Debug.vala
@@ -104,11 +104,10 @@ namespace Debug {
}
private void log(FileStream stream, string prefix, string message) {
- time_t now = time_t();
stream.printf("%s %d %s [%s] %s\n",
log_app_version_prefix,
Posix.getpid(),
- Time.local(now).to_string(),
+ new DateTime.now_local().format("%F %T"),
prefix,
message
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]