Date() - day of year returns 0 on device


#1

Hi,
I read careful https://electricimp.com/docs/squirrel/system/date/ , but on
DEVICE:
now = date();
server.log("Day of Year: "+now.yday)
Returns always zero.
The same code on AGENT is working …
Documentation says: “The usec key is available only when date() is called from within agent code”, but nothing about YDAY.
Am I missing something ?


#2

There is a regression with date() — this will be fixed in impOS 36, out shortly.


#3

10x, hope impOS 36 will be released soon …


#4

@smittytone
any EST when impOS 36 will released?


#5

We’ll be collecting beta participant volunteers shortly. Stay tuned.


#6

impOS 36 is now available for beta testing - see this post


#7

Hi,
I’m testing impOS 36, and “Day of the year” is working
10x