Nyn

Bex wrote:I currently looking into the PlayHistory script now due to some newly discovered behaviour of how SQLite defines 'now'. It's considered as now in GMT so the script doesn't work properly unless you live in GB. It's most notable in the Played Today/Played Yesterday -Nodes which actually you reported some time ago. It's fixed now so I'll see if I easily can change the Top 100 nodes as well.
Bex wrote:Me and tekno came to that conclusion yesterday
Regarding Julianday
I just calculated backwards and got the figure 2415018.5.
ZvezdanD wrote:Regarding Julianday
I just calculated backwards and got the figure 2415018.5.
I thought for long time that it should be like that, but after more in dept testing I concluded that it should be 2415019.0 (e.g. julianday('1899-12-30 12:00')), but it is not necessary always. For example, if expression contain 'now', it should be with 2415019.0.
This is obvious if you take a look on SQLite definition for julianday - you get full day in the noon, not in the midnight.
Bex wrote:Yes that was our solution!
If i use 2415019.0 then I get a mismatch with 12 hours
If i use 2415018.5 then I get it right.
Bex wrote:Regarding the cast thing. It's due to I want the date without time. I don't see how I can change it?
Users browsing this forum: MMuser2011 and 13 guests