projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5346d1c
)
Fix off-by-one in display of month numbers in dcpkdm.
author
Carl Hetherington
<cth@carlh.net>
Wed, 12 Aug 2020 22:25:54 +0000
(
00:25
+0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 12 Aug 2020 22:25:54 +0000
(
00:25
+0200)
tools/dcpkdm.cc
patch
|
blob
|
history
diff --git
a/tools/dcpkdm.cc
b/tools/dcpkdm.cc
index 9fb35d128507b8c1e3a43c7e39c92597d5ee312d..9fb228eea1cce9da1243a71f49be9a80c3261e7c 100644
(file)
--- a/
tools/dcpkdm.cc
+++ b/
tools/dcpkdm.cc
@@
-56,7
+56,7
@@
static string
tm_to_string (struct tm t)
{
char buffer[64];
- snprintf (buffer, 64, "%02d/%02d/%02d %02d:%02d:%02d", t.tm_mday, t.tm_mon
, (t.tm_year + 1900)
, t.tm_hour, t.tm_min, t.tm_sec);
+ snprintf (buffer, 64, "%02d/%02d/%02d %02d:%02d:%02d", t.tm_mday, t.tm_mon
+ 1, t.tm_year + 1900
, t.tm_hour, t.tm_min, t.tm_sec);
return buffer;
}