Vista Uptime Gadget - whacky!!!

J

Jim

I've been playing around with the installed Gadgets. I'm trying to
coinvince myself that the SideBar is actually useful...

Anyway, I have the Uptime gadget (installed by default). Yesterday
morning I booted my PC, and it was left running overnight.

The gadget now helpfully tells me that Windows has been up for 178
days, 6 hours, 51 minutes.

Impressive hey! And that's on Vista x64 RTM :)



Jim
 
A

Alias

Jim said:
I've been playing around with the installed Gadgets. I'm trying to
coinvince myself that the SideBar is actually useful...

Anyway, I have the Uptime gadget (installed by default). Yesterday
morning I booted my PC, and it was left running overnight.

The gadget now helpfully tells me that Windows has been up for 178
days, 6 hours, 51 minutes.

Impressive hey! And that's on Vista x64 RTM :)



Jim

Vista can't even tell time? LOL!

Alias
 
J

Jan Wagner

Jim said:
I've been playing around with the installed Gadgets. I'm trying to
coinvince myself that the SideBar is actually useful...

Anyway, I have the Uptime gadget (installed by default). Yesterday
morning I booted my PC, and it was left running overnight.

The gadget now helpfully tells me that Windows has been up for 178
days, 6 hours, 51 minutes.

Impressive hey! And that's on Vista x64 RTM :)

Vista uptime calculation works just fine (Ctrl-Shift-Esc, "Up Time"
entry under System) but the gadget just doesn't. Said 298d 2h when
the actual time was 122h as shown correctly in the Task Manager. The
gadget's programmer really managed to code something so simple so
poorly, amazing... :))

- Jan
 
R

Richard Urban

You are using a gadget written by "ViNighthawk" and you complain that Vista
is at fault?

Strange indeed!

--


Regards,

Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!
 
B

Bill

Jim said:
I've been playing around with the installed Gadgets. I'm trying to
coinvince myself that the SideBar is actually useful...

Anyway, I have the Uptime gadget (installed by default). Yesterday
morning I booted my PC, and it was left running overnight.

The gadget now helpfully tells me that Windows has been up for 178
days, 6 hours, 51 minutes.

Impressive hey! And that's on Vista x64 RTM :)


This is a known issue with the gadget, not Vista.

It's a coding error that only looks at month, day, year instead of
your configuration which is likely set to day, month, year. The author
just didn't think about default settings outside North America when he
wrote it.
 
M

Mike Hall - MS MVP Windows Shell/User

Wishing does not appear to work.. I have tried already :)
 
M

Mike Hall - MS MVP Windows Shell/User

Jim

When I first installed that gadget, it was fine and for a few days could
count accurately.. alas no more, and it has gone.. two items I do liek are
the calendar and notes.. the address book needs work as it doesn't auto
update when a WAB entry is made.. one has to close it and re-open it.. maybe
a fix will arrive for that.. I have the feeds gadget running, but wish that
it could be sized.. four lines is not enough.. the clock would be better if
it had an alarm function..

More gadgets have been promised in the future..
 
B

Bill Frisbee

I've yet to see any of your posts come from a Vista box.

Good job trolling without even attempting to use the product...


the winner sure as heck isn't you...



Bill F.
 
N

Nina DiBoy

MicroFox said:
vista tells me that its time to boot back into xp.....

LOL! MS is making Vista fudge the numbers to compete with Linux and OS
X machines!

--
Priceless quotes in m.p.w.vista.general group:

"Price is actually no factor in piracy..." spoken by
Mike Brannigan

"But I'm not insulting people. I'm insulting Linux Loonies..."
spoken by Mike <[email protected]>

"No, I'm not sure. I was just making fun of Chad's typo."
spoken by Mike <[email protected]>
 
B

Bill

Tekguru (Daron Brewood) said:
Me neither.


I just did a quick search and couldn't find reference to it either,
but if you use dd/mm/yy instead of mm/dd/yy then the gadget reports
the wrong uptime. Either change your date configuration to North
America standard (month first) or edit the gadget VB script to swap
month and day values around.

The script is located in:

C:\Users\[name]\AppData\Local\Microsoft\Windows
Sidebar\Gadgets\Uptime.gadget\[region]\core

Someone posted the details of how to edit the script, but since it
doesn't affect my setup, I didn't bother to take notice. I thought it
was in this newsgroup, but perhaps not.
 
A

Alias

Bill said:
I've yet to see any of your posts come from a Vista box.

Not a requirement to post here.
Good job trolling without even attempting to use the product...

Ah, the troll insult. How creative and unique of you. Bucking for an
MVP, are ya?
the winner sure as heck isn't you...



Bill F.

It's a game?

Alias
 
J

Jim

This is a known issue with the gadget, not Vista.

It's a coding error that only looks at month, day, year instead of
your configuration which is likely set to day, month, year. The author
just didn't think about default settings outside North America when he
wrote it.


Yes that would explain it.

The rest of the world will never understand why the USA uses MM/DD/YY
format. After all, they don't use MM:HH:SS for the times....

At least it's now clarifiied, thank you!


Jim
 
J

Jim

Tekguru (Daron Brewood) said:
Me neither.


I just did a quick search and couldn't find reference to it either,
but if you use dd/mm/yy instead of mm/dd/yy then the gadget reports
the wrong uptime. Either change your date configuration to North
America standard (month first) or edit the gadget VB script to swap
month and day values around.

The script is located in:

C:\Users\[name]\AppData\Local\Microsoft\Windows
Sidebar\Gadgets\Uptime.gadget\[region]\core

Someone posted the details of how to edit the script, but since it
doesn't affect my setup, I didn't bother to take notice. I thought it
was in this newsgroup, but perhaps not.

Thanks Bill,

this fix seems to work:

edit the file located above, which for me is:

C:\Users\Jim\AppData\Local\Microsoft\Windows
Sidebar\Gadgets\Uptime.gadget\en-US\core\core.framework.vbs


Change:

Function WMIDateStringToDate(dtmBootup)

WMIDateStringToDate = CDate(Mid(dtmBootup, 5, 2) & "/" & _
Mid(dtmBootup, 7, 2) & "/" & Left(dtmBootup, 4) _
& " " & Mid (dtmBootup, 9, 2) & ":" & _
Mid(dtmBootup, 11, 2) & ":" & Mid(dtmBootup,13, 2))

End Function


to


Function WMIDateStringToDate(dtmBootup)

WMIDateStringToDate = CDate(Mid(dtmBootup, 7, 2) & "/" & _
Mid(dtmBootup, 5, 2) & "/" & Left(dtmBootup, 4) _
& " " & Mid (dtmBootup, 9, 2) & ":" & _
Mid(dtmBootup, 11, 2) & ":" & Mid(dtmBootup,13, 2))

End Function





Obviously again it's hard-coding (for the RestOfWorld format versus
USA format) but it works for me.

Excellent :)




Jim
 
T

Tom Lake

Is there a way to have it use whatever the current format is rather than have to edit
it for each one?

Tom Lake
 
M

MicroFox

I have seen that in every newsgroup there is ONE total idiot that shines
among the rest...

Well in this newsgroup YOU are that idiot. Yep you win the grand prize...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top