Hi!
Been spending time trying to sort out why I can’t get rid of the “%” in my timestamp updates, but without luck. Probably something simple ?
I have the following item:
DateTime MyLastUpdate "[%1$tY-%1$tm-%1$td %1$tH:%1$tM]" <clock>
And the rule:
import org.openhab.core.library.types.*
rule "UpdateTimestamp"
when
Item MyItem received update
then
logInfo("UpdateTimeStamp", "Updating timestamp..")
PlantPiffLastUpdate.postUpdate(new DateTimeType())
end
The result is:
%2016-11-21 21:04
Anyone got any idea on how do I get rid of the “%” ?
Regards, S