version.c: Make the build date/time independent of locale and timezone
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 May 2013 09:40:02 +0000 (11:40 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 May 2013 09:40:02 +0000 (11:40 +0200)
src/libpspp/automake.mk

index 77e34860ec7b5534c0f2bf6c050af59b614fedd1..3f29e6d584017f27c74ddb47b7c51c439fab19d7 100644 (file)
@@ -121,7 +121,7 @@ src/libpspp/version.c: $(top_srcdir)/AUTHORS Makefile
        echo "const char bare_version[] = \"$(VERSION)\";" >> $@
        echo "const char version[] = \"GNU $(PACKAGE) $(VERSION)\";" >> $@
        echo "const char stat_version[] = \"GNU $(PACKAGE) $(VERSION) \
-(`date`).\";" >> $@
+(`LC_ALL=C TZ=UTC date`).\";" >> $@
        echo "const char host_system[] = \"$(host_triplet)\";" >> $@
        echo "const char build_system[] = \"$(build_triplet)\";" >> $@
        echo "const char locale_dir[] = \"$(datadir)/locale\";" >> $@