# Bugs in Snapshot 4.0.0

**URL:** <https://community.openhab.org/t/bugs-in-snapshot-4-0-0/144262>\
**Category:** Misc\
**Created:** [February 9, 2023, 8:51pm UTC](https://community.openhab.org/t/bugs-in-snapshot-4-0-0/144262 "2023-02-09T20:51:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [February 9, 2023, 9:01pm UTC](https://community.openhab.org/t/bugs-in-snapshot-4-0-0/144262/2 "2023-02-09T21:01:11Z")

</div>

Please post to [openHAB 4.0 SNAPSHOT discussion](https://community.openhab.org/t/openhab-4-0-snapshot-discussion/142322) where the 4.0 SNAPSHOT problems are discussed.

> [@MartOs](#):
>
> 1. time.Duration

Note that `timerDuration` in this case is a String. The `.state` is _always_ a String. You might need to parse it to a Number first.

But in any case, this is 100% implemented in the joda-js library so any issue would need to be filed and corrected there. It’s not an OH problem.

> [@MartOs](#):
>
> **2. things.getThings() .setLabel**  
> When I change a thing’s label with JS Scripting, it works, but doesn’t stick after a reboot.

How is the Thing defined? In a text file or through the UI?

What use case would have you changing the label of a Thing?

> [@MartOs](#):
>
> When I apply metadata (any kind) using JS scripting, it works, but the UI displays ‘Not Set’

Note, this code is not correct (missing a closing ’ on the first line).

Which version of openhab-js are you using? The metadata was completely reworked in the latest release.

> [@MartOs](#):
>
> 1. material icons

Show the full config from the “Code” tab.

> [@MartOs](#):
>
> Am I doing something wrong? Seems unusual to find 5 bugs in a row

You are testing the 4.0 SNAPSHOT. Tons of breaking changes are being introduced with almost every build. Welcome to the bleeding edge.

---

_[View the full topic](https://community.openhab.org/t/bugs-in-snapshot-4-0-0/144262)._
