Skip to content
Snippets Groups Projects
Commit 62068002 authored by René Schöne's avatar René Schöne
Browse files

Print/format dates in UTC.

parent 6ae12355
No related branches found
No related tags found
1 merge request!1Fixing CI
Pipeline #2352 passed with warnings
aspect ItemHandling {
private static final java.text.DateFormat DateTimeItem.FORMAT = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX");
private static final java.text.DateFormat DateTimeItem.FORMAT = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS") {{
setTimeZone(TimeZone.getTimeZone("UTC"));
}};
//--- getStateAsString ---
syn String Item.getStateAsString();
......
......@@ -2,7 +2,7 @@ Color Item: id="color1" label="a Color Item" state="1,2,3" topic="item/hsb/color
Contact Item: id="contact1" label="a Contact Item" state="true" topic="item/bool/contact1/state" ;
Image Item: id="image1" label="an Image Item" state="def" topic="item/str/image1/state" ;
Location Item: id="location1" label="a Location Item" state="ghi" topic="item/str/location1/state" ;
DateTime Item: id="datetime1" label="a DateTime Item" state="1970-01-18T21:43:35.826+01:00" topic="item/date/datetime1/state" ;
DateTime Item: id="datetime1" label="a DateTime Item" state="1970-01-18T20:43:35.826" topic="item/date/datetime1/state" ;
Item: id="default1" label="a Default Item" state="pqr" topic="item/str/default1/state" ;
Dimmer Item: id="dimmer1" label="a Dimmer Item" state="123.0" topic="item/double/dimmer1/state" ;
Player Item: id="player1" label="a Player Item" state="jkl" topic="item/str/player1/state" ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment