[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master 0310bff: * src/ftdump.c (Print_Name): Fix times
From: |
Alexei Podtelezhnikov |
Subject: |
[freetype2-demos] master 0310bff: * src/ftdump.c (Print_Name): Fix timestamps on Windows. |
Date: |
Fri, 29 May 2020 23:58:26 -0400 (EDT) |
branch: master
commit 0310bffac7594acd0d02d5d39e54fa4e750e428a
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftdump.c (Print_Name): Fix timestamps on Windows.
---
ChangeLog | 6 +++++-
src/ftdump.c | 7 ++++---
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 18574c7..1887c7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
+2020-05-29 Alexei Podtelezhnikov <apodtele@gmail.com>
+
+ * src/ftdump.c (Print_Name): Fix timestamps on Windows.
+
2020-05-28 Alexei Podtelezhnikov <apodtele@gmail.com>
- src/ftgamma.c: Center and clip the bitmap to fix resizing.
+ * src/ftgamma.c: Center and clip the bitmap to fix resizing.
2020-05-28 Alexei Podtelezhnikov <apodtele@gmail.com>
diff --git a/src/ftdump.c b/src/ftdump.c
index b6f2b27..02e6b21 100644
--- a/src/ftdump.c
+++ b/src/ftdump.c
@@ -157,8 +157,10 @@
/* ignore most of upper bits until 2176 and adjust epoch */
- created += head->Created [0] == 1 ? 2212122496 : -2082844800;
- modified += head->Modified[0] == 1 ? 2212122496 : -2082844800;
+ created = head->Created [0] == 1 ? created + 2212122496
+ : created - 2082844800;
+ modified = head->Modified[0] == 1 ? modified + 2212122496
+ : modified - 2082844800;
strftime( buf, sizeof ( buf ), "%Y-%m-%d", gmtime( &created ) );
printf( "%s%s\n", Name_Field( "created" ), buf );
@@ -168,7 +170,6 @@
printf( "%s%.2f\n", Name_Field( "revision" ),
head->Font_Revision / 65536.0 );
}
-
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master 0310bff: * src/ftdump.c (Print_Name): Fix timestamps on Windows.,
Alexei Podtelezhnikov <=