Add /t to windows date
@@ -18,7 +18,7 @@ build:
number: 0
script:
- pushd {{ pkg_src }}
- - for /F "delims=" %%i in ('date.exe +%Y-%m-%dT%H:%M:%S%:z') DO set BUILT=%%i # [win]
+ - for /F "delims=" %%i in ('date.exe /t +%Y-%m-%dT%H:%M:%S%:z') DO set BUILT=%%i # [win]
- export BUILT=$(date -u +%Y-%m-%dT%H:%M:%S%:z) # [unix]
{% set flags = dict(VERSION=version, REVISION="deadbeef", BRANCH=branch, BUILD="%BUILT%" if win else "$BUILT") %}
- go install -v -ldflags "{% for key,value in flags.items() %}-X {{ import_path }}/common.{{ key }}='{{ value }}' {% endfor %}" .
