From 80295c3739106444e9b062633e0106cae8de6224 Mon Sep 17 00:00:00 2001 From: Sebastien Benard Date: Thu, 31 Aug 2023 16:19:35 +0200 Subject: [PATCH] Fixed getBuildTimeStampSeconds() --- src/dn/MacroTools.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dn/MacroTools.hx b/src/dn/MacroTools.hx index 622f1097..4fd38b4b 100644 --- a/src/dn/MacroTools.hx +++ b/src/dn/MacroTools.hx @@ -80,12 +80,12 @@ class MacroTools { } /** - Return the compilation timestamp in seconds as standard Date string format + Return the compilation timestamp in seconds **/ public static macro function getBuildTimeStampSeconds() { return { pos : Context.currentPos(), - expr : EConst(CFloat( Std.string( haxe.Timer.stamp() ) )), + expr : EConst(CFloat( Std.string( Date.now().getTime()/1000 ) )), } }