From 04110d0110afee9164d8b61dc64c9fc9b44493a2 Mon Sep 17 00:00:00 2001 From: Carlo Sciolla Date: Wed, 21 Aug 2019 12:06:38 +0200 Subject: [PATCH] Use UTC timezone when setting dates, to align with MELPA --- bin/set-version.sh | 4 ++-- plantuml-mode.el | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/set-version.sh b/bin/set-version.sh index 19c7425..dca53fc 100755 --- a/bin/set-version.sh +++ b/bin/set-version.sh @@ -11,7 +11,7 @@ function grab_version(){ # Updates the version in-place function update_version(){ NEW_VERSION="${1}" - sed -i -E "s/plantuml-mode-version \"[1-9\.]+\"/plantuml-mode-version \"${1}\"/" plantuml-mode.el + sed -i -E "s/plantuml-mode-version \"[0-9\.]+\"/plantuml-mode-version \"${1}\"/" plantuml-mode.el } case "$(git rev-parse --abbrev-ref HEAD)" in @@ -22,7 +22,7 @@ case "$(git rev-parse --abbrev-ref HEAD)" in ;; 'develop') - VERSION="$(date '+%Y%m%d.%-H%M')" # MELPA style + VERSION="$(TZ='UTC' date '+%Y%m%d.%-H%M')" # MELPA style update_version "${VERSION}" git add plantuml-mode.el ;; diff --git a/plantuml-mode.el b/plantuml-mode.el index ec6b382..c98af93 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -92,7 +92,7 @@ (defvar plantuml-mode-hook nil "Standard hook for plantuml-mode.") -(defconst plantuml-mode-version "20190821.1053" "The plantuml-mode version string.") +(defconst plantuml-mode-version "20190821.1011" "The plantuml-mode version string.") (defvar plantuml-mode-debug-enabled nil)