Threaded View
-
April 3rd, 2015 04:06 AM #1
- Join Date
- Apr 2015
- Location
- Urff
- Posts
- 82
- Mentioned
- 0 Post(s)
- Tagged
- 2 Thread(s)
- Sex:
Clock Gadgets - Change Time Format
I recently installed a few HUD gadgets and realized the clock is stuck in 24-hour/military time for some reason.Anyone know if there's a way to change the time format in the javascript entries?
I poked around a bit in 'C:\Users\[username]\AppData\Local\Microsoft\Windows Sidebar\Gadgets\Airlock Blue Digital Clock.gadget\js' (an easier way to get there is to type 'shell:gadgets' into the start menu search bar), opened the 'clock.js' file by right-click > Edit and noticed there is a line under "Initial Settings" that looks like this:
Code:function view() { if (!document.images) return var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() if ((hours>=00)&&(minutes>=1)||(hours>=13)) { hours=hours } if (hours==0) hours=12 extract(hours,minutes,seconds) setTimeout("view()",1000) }
Last edited by Terrapin2190; April 4th, 2015 at 10:17 PM.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to change date/time selector background color?
By reloaded_ in forum Windows Style Builder v1.5 TutorialsReplies: 2Last Post: February 10th, 2016, 09:30 AM -
cant figure out how to change the clock in windows 7
By nighttrain in forum Time\Date CPLReplies: 4Last Post: April 4th, 2015, 10:35 PM -
Help me to change clock theme orange blade
By vlad tepes in forum Help & SupportReplies: 1Last Post: June 19th, 2011, 06:15 PM -
how to change clock font?
By peinz in forum Theme Building QuestionsReplies: 9Last Post: June 4th, 2011, 06:48 AM -
how to change the clock im using 64bit win7
By xhiane in forum Time\Date CPLReplies: 1Last Post: June 6th, 2010, 11:21 AM
This is my rig. I'm currently in the process of getting it upgraded. (Don't mind the messy room, I'm poor asf so I live in a dump, lmao) Current Specs Model: Dell Optiplex 755
Show Us Your Rig