cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

refreshing the datetime property after pressing Save on the item

JK_10565232
6-Contributor

refreshing the datetime property after pressing Save on the item

Hello everyone,

I have this problem, I have properties on Thing of the DateTime type and I discovered that even though these properties are marked as persistent, they are refreshed after pressing save with the current date. How to turn it off? Is this a known bug?

 

JK_10565232_0-1698321242336.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
JK_10565232
6-Contributor
(To:odukiya)

Hi, 

I found where is problem. 

 

this happens before property is set for the first time. 

When I set the time on the first property it already held the value. 

 

Thank you for answer.

Jan

View solution in original post

2 REPLIES 2
odukiya
15-Moonstone
(To:JK_10565232)

Hello @JK_10565232 

 

Do you mean to say that when you go to Thing >> datetime property and just save it  than it gives you current date? or is it when you edit and set the current datetime value it change the date for you?

Persisting the property means it will save whatever last value you will set and save it 

 

thanks

Om 

JK_10565232
6-Contributor
(To:odukiya)

Hi, 

I found where is problem. 

 

this happens before property is set for the first time. 

When I set the time on the first property it already held the value. 

 

Thank you for answer.

Jan

Top Tags