Code by Scott שאול בן ישוע
Commit 41715609 authored by Brian Lowrance's avatar Brian Lowrance
Browse files

Adjusted %date% for 2.0.0 release (Remove the year from the date announcement)

parent 0bf4f489
...@@ -1854,7 +1854,7 @@ def pageHelpPhraseTokens(){ ...@@ -1854,7 +1854,7 @@ def pageHelpPhraseTokens(){
def AvailTokens = "" def AvailTokens = ""
AvailTokens += "%askalexa% = Send phrase to AskAlexa SmartApp's message queue\n\n" AvailTokens += "%askalexa% = Send phrase to AskAlexa SmartApp's message queue\n\n"
AvailTokens += "%groupname% = Name that you gave for the event group\n\n" AvailTokens += "%groupname% = Name that you gave for the event group\n\n"
AvailTokens += "%date% = Current date; January 01 2018\n\n" AvailTokens += "%date% = Current date; January 01\n\n"
AvailTokens += "%day% = Current day; Monday\n\n" AvailTokens += "%day% = Current day; Monday\n\n"
AvailTokens += "%devicename% = Triggering devices display name\n\n" AvailTokens += "%devicename% = Triggering devices display name\n\n"
AvailTokens += "%devicetype% = Triggering device type; motion, switch, etc\n\n" AvailTokens += "%devicetype% = Triggering device type; motion, switch, etc\n\n"
...@@ -2148,7 +2148,7 @@ def processPhraseVariables(appname, phrase, evt){ ...@@ -2148,7 +2148,7 @@ def processPhraseVariables(appname, phrase, evt){
} }
} }
if (phrase.contains("%date%")) { if (phrase.contains("%date%")) {
phrase=phrase.replace("%date%",(new Date().format( 'MMMM dd yyyy' ))) phrase=phrase.replace("%date%",(new Date().format( 'MMMM dd' )))
} }
if (phrase.contains("%day%")) { if (phrase.contains("%day%")) {
phrase=phrase.replace("%day%",(new Date().format( 'EEEE' ))) phrase=phrase.replace("%day%",(new Date().format( 'EEEE' )))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment