nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94fff01
)
nitc: use GMT as numeric version instead of local time
author
Alexis Laferrière
<alexis.laf@xymus.net>
Fri, 29 Dec 2017 17:43:44 +0000
(12:43 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 17 Jan 2018 17:44:34 +0000
(12:44 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
src/platform/app_annotations.nit
patch
|
blob
|
history
diff --git
a/src/platform/app_annotations.nit
b/src/platform/app_annotations.nit
index
9cfdec9
..
6f09790
100644
(file)
--- a/
src/platform/app_annotations.nit
+++ b/
src/platform/app_annotations.nit
@@
-39,8
+39,8
@@
class AppProject
var version_code: Int is lazy do
# Get the date and time (down to the minute) as string
- var local_time = new Tm.localtime
- var local_time_s = local_time.strftime("%y%m%d%H%M")
+ var gmtime = new Tm.gmtime
+ var local_time_s = gmtime.strftime("%y%m%d%H%M")
return local_time_s.to_i
end