Working in Studio but not at Galaxy Watch Ultra

I tried following code to determine wether a calendar event is today.

string.sub ({dd},2,2)==

string.sub ({c1bd},2,2)

and “Heute” or “Irgendwann”

It works fine in Studio but not on the watch.

Any ideas?

Is there another way to do what I want?

Thanks a lot!

Markus

I believe the problem relates to the giving calander permission to Watchmaker app on watch.

Thx for your reply. I’ll try this and give Feedback.

Gave all permissions to watchmaker I could find on watch and Samsung Wear App.

Still not working.

I believe this is a problem between Watchmaker and Wear OS.

For debugging purposes, I would suggest placing in two separate text fields the values of {dd} and {c1bd}. We may discover that the values are messed up! I suppose it could be translation issues between English and German when going to the watch.

By the way, what kind of watch and phone are you using?

Thx for your reply.

Samsung Galaxy Watch Ultra 2025 and Samsung Galaxy S21 FE.

I tried what you proposed last week. Both texts where identical. Consider that it works in Studio. It’s not a code bug!

Not even works with setting standard language to English (UK).

Maybe a good idea if you test the Code with a text Element on your (at best non-Samsung) watch. Then we get conclusions whether it is a problem of my watch or not.

This is - heaven knows - not the only problem I have with Watchmaker faces on my watch. F. e. ring radiuses show bigger in Studio than on Watch Ultra. Therefore I can’t publish my watchface cause it looks wrong in Studio.

Before Wear OS the {c1t} expression had the format day of the week - date (dd-mm-yyyy) - name of the event, f. e Monday, 2026-08-24, 13:00, Meeting or something like this.

With this format I could determine whether an event is today. Now I get only "Meeting".

os.date expressions don’t work in Watchmaker.

This pulls the rug out from under my feet. Lua is able to determinate whether an event is today, Watchmaker is not. In my opinion this is an indictment of poverty.

Maybe this is because of Wear OS restrictions, but I am very disappointed that Watchmaker developers not are feeling necessary to react on my problem.