08/25/2009, 09:25 PM
|
#1 (permalink) |
|
Member
![]() Join Date: Nov 2003
Posts: 334
Likes Received: 0
Thanks: 20
Thanked 22 Times in 9 Posts
|
I couldn't find this in the forums, so I figured it out myself. Apologies if I failed at searching
![]() In Code:
/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js Code:
$('clock').innerHTML = Mojo.Format.formatDate(date, {time:format});
Code:
$('clock').innerHTML = Mojo.Format.formatDate(date, {date:'short',time:format});
8/25/09 10:24 |
08/25/2009, 11:23 PM
|
#4 (permalink) |
|
Member
![]() Join Date: Jun 2009
Location: Somewhere n da 404
Posts: 2,237
Likes Received: 0
Thanks: 247
Thanked 1,039 Times in 551 Posts
|
works great thanks!
Might want to change to: Code:
cd / mount -o remount,rw / vi /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js Depending what mods have been done to your bar-assistant.js file the line you are looking for is around 2350 +_ ![]() Doug Last edited by 2sslow; 08/31/2009 at 11:03 PM. |
08/27/2009, 09:51 AM
|
#5 (permalink) |
|
Member
![]() Join Date: Nov 2003
Posts: 334
Likes Received: 0
Thanks: 20
Thanked 22 Times in 9 Posts
|
Glad it worked for you guys. Now a new question - any idea on modifying the lock screen? I've been banging around in com.palm.app.screenlock and can't find much of anything to help me add date and other info to it. I do not understand why 1.) this screen doesn't already have the date and 2.) why this isn't configurable.
Thanks |
08/27/2009, 11:15 AM
|
#6 (permalink) | |
|
Member
![]() Join Date: Jul 2004
Location: Boo-val,FL
Posts: 2,545
Likes Received: 130
Thanks: 176
Thanked 161 Times in 129 Posts
|
Quote:
|
|
08/31/2009, 02:39 AM
|
#7 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 239
Likes Received: 0
Thanks: 114
Thanked 23 Times in 15 Posts
|
I'm trying to change the Large clock color on the locked screen.. Any clues where t look?
Thanks in advance..
__________________
How many times have you seen the Dr.?..lol |
08/31/2009, 05:34 AM
|
#8 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Location: Palm Desert, CA
Posts: 249
Likes Received: 1
Thanks: 38
Thanked 47 Times in 22 Posts
|
Quote:
its Code:
sudo -i cd / mount -o remount,rw / vi /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js mount -o remount,ro / |
|
08/31/2009, 10:47 PM
|
#9 (permalink) |
|
Member
![]() Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
|
Why does it have that extra space between the date, {
This: Code:
$('clock').innerHTML = Mojo.Format.formatDate(date, {date:'short',time:format});
Code:
$('today').innerHTML = Mojo.Format.formatDate(date,{date:'short'});
And could we get rid of the year.... So have it look like: 8/31 and not 8/31/09? Cuz I figure I know what year I am in.
__________________
Still happily rooting my launch 6/6/09 Pre! ![]() (and my wife's) Last edited by Webby_s; 08/31/2009 at 10:59 PM. |
08/31/2009, 11:10 PM
|
#10 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 50
Likes Received: 0
Thanks: 5
Thanked 10 Times in 2 Posts
|
Quote:
Quick question: My time at the top slaps an extra zero in front of everything. Example, instead of "4:30" it will say "04:30". Any way of getting rid of this? |
|
09/01/2009, 12:07 AM
|
#11 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Posts: 57
Likes Received: 0
Thanks: 28
Thanked 3 Times in 3 Posts
|
Quote:
Ok im a total newb so im going to ask you guys this question, after i type all this and scroll through the lines of code in putty how do i edit it??? it does not let me type anything in putty or delete anything, i try but it just doesnt do anything? can someone please explain to me in detail of to edit the line of code after i have found it or am i just an idiot?!?! any help would be greatly appericiated. David |
|
09/01/2009, 12:11 AM
|
#12 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 106
Likes Received: 0
Thanks: 66
Thanked 24 Times in 15 Posts
|
Quote:
The extra space doesn't matter. Javascript (as most programming languages) is pretty flexible with white space characters. It's just there to make the code more readable for the human eyes. |
|
09/01/2009, 12:38 AM
|
#13 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 15
Likes Received: 0
Thanks: 10
Thanked 14 Times in 6 Posts
|
Quote:
Code:
var formedDate=Mojo.Format.formatDate(date, {date:'short'});
formedDate=formedDate.substr(0,formedDate.lastIndexOf('/'));
$('clock').innerHTML = formedDate+' '+Mojo.Format.formatDate(date, {time:format});
|
|
09/01/2009, 01:51 AM
|
#14 (permalink) | |
|
Member
![]() Join Date: May 2009
Posts: 353
Likes Received: 0
Thanks: 7
Thanked 57 Times in 41 Posts
|
Quote:
|
|
09/01/2009, 03:00 PM
|
#16 (permalink) |
|
Member
![]() Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
|
Interesting!! I will have to try that when I get home... Anyone else try it? Screenshot?
__________________
Still happily rooting my launch 6/6/09 Pre! ![]() (and my wife's) |
09/01/2009, 09:10 PM
|
#17 (permalink) | |
|
Forum Leader
![]() Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
|
Quote:
|
|
09/01/2009, 11:26 PM
|
#18 (permalink) | |
|
Member
![]() Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
|
Quote:
And I sure as heck don't have the knowledge to possibly change it to work.... (sure wish I did!)
__________________
Still happily rooting my launch 6/6/09 Pre! ![]() (and my wife's) |
|
![]() |
|
| Tags |
| date, time |
| Thread Tools | |
| Display Modes | |
|
|



