<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Acydlord</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Acydlord"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Acydlord"/>
	<updated>2026-04-21T02:33:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Messaging_Adding_Timestamps_to_All_Received_Messages&amp;diff=4526</id>
		<title>Patch Messaging Adding Timestamps to All Received Messages</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Messaging_Adding_Timestamps_to_All_Received_Messages&amp;diff=4526"/>
		<updated>2009-08-19T02:49:42Z</updated>

		<summary type="html">&lt;p&gt;Acydlord: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{template:patch}}&lt;br /&gt;
== Introduction==&lt;br /&gt;
&lt;br /&gt;
A number of users have requested adding timestamps to each message that arrives on the device.&lt;br /&gt;
Palm actually goes out of their way to group messages that have arrived during various time intervals,&lt;br /&gt;
but if you'd prefer to see a timestamp on each message, simply follow the instructions below.&lt;br /&gt;
&lt;br /&gt;
== Procedure==&lt;br /&gt;
&lt;br /&gt;
1. Remount the file system as read/write&lt;br /&gt;
&lt;br /&gt;
2. cd to '''/usr/palm/applications/com.palm.app.messaging/app/controllers/'''&lt;br /&gt;
&lt;br /&gt;
3. Backup '''chatview-assistant.js''' (just to be safe)&lt;br /&gt;
&lt;br /&gt;
4. Open '''chatview-assistant.js''' and comment out the following lines:&lt;br /&gt;
&lt;br /&gt;
 * 1169 (webOS 1.1: '''1242''') - line that starts with: '''if(!ChatFlags.'''&lt;br /&gt;
 * 1177 (webOS 1.1: '''1250''') - line that starts with: '''if(today-msg.'''&lt;br /&gt;
 * 1179 (webOS 1.1: '''1252''') - first closing bracket on its own line: '''}'''&lt;br /&gt;
 * 1180 (webOS 1.1: '''1253''') - second closing bracket on its own line: '''}'''&lt;br /&gt;
&lt;br /&gt;
5. Save the file and exit the editor&lt;br /&gt;
&lt;br /&gt;
6. Remount the file system as read-only&lt;br /&gt;
&lt;br /&gt;
7. Logout of your root session&lt;br /&gt;
&lt;br /&gt;
8. Reboot the device&lt;br /&gt;
&lt;br /&gt;
You should now see a full timestamp on all received messages.&lt;br /&gt;
&lt;br /&gt;
= Add Timestamps to All Messages - another approach =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The method described above is the easiest way to display message timestamps.  I went a little farther since I didn't want the &amp;quot;Message Sent:&amp;quot; label and I also wanted to format the string a bit more.  While I was at it, I also modified the view for the message text to display as pre-formatted text since text messages are text after all, not html.&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
&lt;br /&gt;
* same as steps 1 &amp;amp; 2 above&lt;br /&gt;
* save a backup of /usr/palm/applications/com.palm.app.messaging/&lt;br /&gt;
** stylesheets/messaging.css&lt;br /&gt;
** app/views/chatview/message/message-text.html&lt;br /&gt;
** app/controllers/chatview-assistant.js&lt;br /&gt;
* edit stylesheets/messaging.css&lt;br /&gt;
** search for the string 'messageText' and append the following after its style definition&lt;br /&gt;
&lt;br /&gt;
 .messageText pre {&lt;br /&gt;
    font-family: inherit;&lt;br /&gt;
    font-size: inherit;&lt;br /&gt;
    color: inherit;&lt;br /&gt;
 }&lt;br /&gt;
 .timeStamp {&lt;br /&gt;
    font-size: 12px;&lt;br /&gt;
    font-style: italic;&lt;br /&gt;
    color: #1111ff;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
**feel free to change the style to your liking.  I tried using 'white-space: pre-wrap' in the .messageText class but it didn't behave as expected, hence the use of the pre tag.&lt;br /&gt;
* edit app/views/chatview/message/message-text.html&lt;br /&gt;
** change the single line to:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;messageText&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;#{-messageText}&amp;lt;/pre&amp;gt; #{-errorContent}&amp;lt;span class=&amp;quot;timeStamp&amp;quot;&amp;gt;#{-timeStampText}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* edit app/controllers/chatview-assistant.js&lt;br /&gt;
** search for the string 'preFormatChatList:' and just below that look for 'var msg = stuff.list[i];'&lt;br /&gt;
** somewhere after that line (within the for loop) add the following:&lt;br /&gt;
 var ts = new Date();&lt;br /&gt;
 ts.setTime(msg.deviceTimeStamp);&lt;br /&gt;
 msg.timeStampText = Mojo.Format.formatDate(ts,'short');&lt;br /&gt;
** note that I used msg.deviceTimeStamp which I believe is when your phone sent/received the message.  If you'd prefer the time it was actually sent by the sender, use msg.timeStamp instead.  while you're in here, you may consider applying the [[Patch Messaging Change &amp;quot;Enter Key&amp;quot; To Create Newline|send on return behavior]] changes.&lt;br /&gt;
* restart LunaSysMgr or reboot&lt;br /&gt;
&lt;br /&gt;
be sure to save the files you modified as they could get overwritten on the next sprint update.  better yet, install [[Applying_Patches|quilt]] to manage the diffs as a patch.&lt;br /&gt;
&lt;br /&gt;
= Remove 5min timestamp divider =&lt;br /&gt;
&lt;br /&gt;
== Intro ==&lt;br /&gt;
The Divider popping up in messages every 5 minutes can get mildly annoying. It is possible to make it so that the divider only shows up when the message protocol/transport is changed.&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
* Complete one of the two methods above to enable timestamps in your messages.&lt;br /&gt;
* While you're in chatview-assistant.js look for &amp;quot;d.setMinutes&amp;quot; it should be around line 1232 in 1.1&lt;br /&gt;
** Find the line that says &lt;br /&gt;
 msg.dividerText = msg.transportClas; + BucketDateFormatter.getDateBucket(d,true,true);&lt;br /&gt;
** Replace it with &lt;br /&gt;
 msg.dividerText = msg.transportClass; // + BucketDateFormatter.getDateBucket(d,true,true);&lt;br /&gt;
&lt;br /&gt;
= Acknowledgements=&lt;br /&gt;
&lt;br /&gt;
Thanks to tk102 and scuba_steve on [http://www.precentral.net/ PreCentral] for the mod.&lt;/div&gt;</summary>
		<author><name>Acydlord</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Messaging_Adding_Timestamps_to_All_Received_Messages&amp;diff=4350</id>
		<title>Patch Messaging Adding Timestamps to All Received Messages</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Messaging_Adding_Timestamps_to_All_Received_Messages&amp;diff=4350"/>
		<updated>2009-08-14T07:21:06Z</updated>

		<summary type="html">&lt;p&gt;Acydlord: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{template:patch}}&lt;br /&gt;
== Introduction==&lt;br /&gt;
&lt;br /&gt;
A number of users have requested adding timestamps to each message that arrives on the device.&lt;br /&gt;
Palm actually goes out of their way to group messages that have arrived during various time intervals,&lt;br /&gt;
but if you'd prefer to see a timestamp on each message, simply follow the instructions below.&lt;br /&gt;
&lt;br /&gt;
== Procedure==&lt;br /&gt;
&lt;br /&gt;
1. Remount the file system as read/write&lt;br /&gt;
&lt;br /&gt;
2. cd to '''/usr/palm/applications/com.palm.app.messaging/app/controllers/'''&lt;br /&gt;
&lt;br /&gt;
3. Backup '''chatview-assistant.js''' (just to be safe)&lt;br /&gt;
&lt;br /&gt;
4. Open '''chatview-assistant.js''' and comment out the following lines:&lt;br /&gt;
&lt;br /&gt;
 * 1169 (webOS 1.1: '''1242''') - line that starts with: '''if(!ChatFlags.'''&lt;br /&gt;
 * 1177 (webOS 1.1: '''1250''') - line that starts with: '''if(today-msg.'''&lt;br /&gt;
 * 1179 (webOS 1.1: '''1252''') - first closing bracket on its own line: '''}'''&lt;br /&gt;
 * 1180 (webOS 1.1: '''1253''') - second closing bracket on its own line: '''}'''&lt;br /&gt;
&lt;br /&gt;
5. Save the file and exit the editor&lt;br /&gt;
&lt;br /&gt;
6. Remount the file system as read-only&lt;br /&gt;
&lt;br /&gt;
7. Logout of your root session&lt;br /&gt;
&lt;br /&gt;
8. Reboot the device&lt;br /&gt;
&lt;br /&gt;
You should now see a full timestamp on all received messages.&lt;br /&gt;
&lt;br /&gt;
= Add Timestamps to All Messages - another approach =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The method described above is the easiest way to display message timestamps.  I went a little farther since I didn't want the &amp;quot;Message Sent:&amp;quot; label and I also wanted to format the string a bit more.  While I was at it, I also modified the view for the message text to display as pre-formatted text since text messages are text after all, not html.&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
&lt;br /&gt;
* same as steps 1 &amp;amp; 2 above&lt;br /&gt;
* save a backup of /usr/palm/applications/com.palm.app.messaging/&lt;br /&gt;
** stylesheets/messaging.css&lt;br /&gt;
** app/views/chatview/message/message-text.html&lt;br /&gt;
** app/controllers/chatview-assistant.js&lt;br /&gt;
* edit stylesheets/messaging.css&lt;br /&gt;
** search for the string 'messageText' and append the following after its style definition&lt;br /&gt;
&lt;br /&gt;
 .messageText pre {&lt;br /&gt;
    font-family: inherit;&lt;br /&gt;
    font-size: inherit;&lt;br /&gt;
    color: inherit;&lt;br /&gt;
 }&lt;br /&gt;
 .timeStamp {&lt;br /&gt;
    font-size: 12px;&lt;br /&gt;
    font-style: italic;&lt;br /&gt;
    color: #1111ff;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
**feel free to change the style to your liking.  I tried using 'white-space: pre-wrap' in the .messageText class but it didn't behave as expected, hence the use of the pre tag.&lt;br /&gt;
* edit app/views/chatview/message/message-text.html&lt;br /&gt;
** change the single line to:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;messageText&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;#{-messageText}&amp;lt;/pre&amp;gt; #{-errorContent}&amp;lt;span class=&amp;quot;timeStamp&amp;quot;&amp;gt;#{-timeStampText}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* edit app/controllers/chatview-assistant.js&lt;br /&gt;
** search for the string 'preFormatChatList:' and just below that look for 'var msg = stuff.list[i];'&lt;br /&gt;
** somewhere after that line (within the for loop) add the following:&lt;br /&gt;
 var ts = new Date();&lt;br /&gt;
 ts.setTime(msg.deviceTimeStamp);&lt;br /&gt;
 msg.timeStampText = Mojo.Format.formatDate(ts,'short');&lt;br /&gt;
** note that I used msg.deviceTimeStamp which I believe is when your phone sent/received the message.  If you'd prefer the time it was actually sent by the sender, use msg.timeStamp instead.  while you're in here, you may consider applying the [[Patch Messaging Change &amp;quot;Enter Key&amp;quot; To Create Newline|send on return behavior]] changes.&lt;br /&gt;
* restart LunaSysMgr or reboot&lt;br /&gt;
&lt;br /&gt;
be sure to save the files you modified as they could get overwritten on the next sprint update.  better yet, install [[Applying_Patches|quilt]] to manage the diffs as a patch.&lt;br /&gt;
&lt;br /&gt;
= Remove 5min timestamp divider =&lt;br /&gt;
&lt;br /&gt;
== Intro ==&lt;br /&gt;
The Divider popping up in messages every 5 minutes can get mildly annoying. It is possible to make it so that the divider only shows up when the message protocol/transport is changed.&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
* Complete one of the two methods above to enable timestamps in your messages.&lt;br /&gt;
* While you're in chatview-assistant.js look for &amp;quot;d.setMinutes&amp;quot; it should be around line 1232 in 1.1&lt;br /&gt;
** Find the line that says &lt;br /&gt;
 msg.dividerText = msg.transportClas; + BucketDateFormatter.getDateBucket(d,true,true);&lt;br /&gt;
** Replace it with &lt;br /&gt;
 msg.dividerText = msg.transportClass; // + BucketDateFormatter.getDateBucket(d,true,true);&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements==&lt;br /&gt;
&lt;br /&gt;
Thanks to tk102 and scuba_steve on [http://www.precentral.net/ PreCentral] for the mod.&lt;/div&gt;</summary>
		<author><name>Acydlord</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Messaging_Adding_Timestamps_to_All_Received_Messages&amp;diff=4349</id>
		<title>Patch Messaging Adding Timestamps to All Received Messages</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Messaging_Adding_Timestamps_to_All_Received_Messages&amp;diff=4349"/>
		<updated>2009-08-14T07:19:29Z</updated>

		<summary type="html">&lt;p&gt;Acydlord: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{template:patch}}&lt;br /&gt;
== Introduction==&lt;br /&gt;
&lt;br /&gt;
A number of users have requested adding timestamps to each message that arrives on the device.&lt;br /&gt;
Palm actually goes out of their way to group messages that have arrived during various time intervals,&lt;br /&gt;
but if you'd prefer to see a timestamp on each message, simply follow the instructions below.&lt;br /&gt;
&lt;br /&gt;
== Procedure==&lt;br /&gt;
&lt;br /&gt;
1. Remount the file system as read/write&lt;br /&gt;
&lt;br /&gt;
2. cd to '''/usr/palm/applications/com.palm.app.messaging/app/controllers/'''&lt;br /&gt;
&lt;br /&gt;
3. Backup '''chatview-assistant.js''' (just to be safe)&lt;br /&gt;
&lt;br /&gt;
4. Open '''chatview-assistant.js''' and comment out the following lines:&lt;br /&gt;
&lt;br /&gt;
 * 1169 (webOS 1.1: '''1242''') - line that starts with: '''if(!ChatFlags.'''&lt;br /&gt;
 * 1177 (webOS 1.1: '''1250''') - line that starts with: '''if(today-msg.'''&lt;br /&gt;
 * 1179 (webOS 1.1: '''1252''') - first closing bracket on its own line: '''}'''&lt;br /&gt;
 * 1180 (webOS 1.1: '''1253''') - second closing bracket on its own line: '''}'''&lt;br /&gt;
&lt;br /&gt;
5. Save the file and exit the editor&lt;br /&gt;
&lt;br /&gt;
6. Remount the file system as read-only&lt;br /&gt;
&lt;br /&gt;
7. Logout of your root session&lt;br /&gt;
&lt;br /&gt;
8. Reboot the device&lt;br /&gt;
&lt;br /&gt;
You should now see a full timestamp on all received messages.&lt;br /&gt;
&lt;br /&gt;
= Add Timestamps to All Messages - another approach =&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The method described above is the easiest way to display message timestamps.  I went a little farther since I didn't want the &amp;quot;Message Sent:&amp;quot; label and I also wanted to format the string a bit more.  While I was at it, I also modified the view for the message text to display as pre-formatted text since text messages are text after all, not html.&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
&lt;br /&gt;
* same as steps 1 &amp;amp; 2 above&lt;br /&gt;
* save a backup of /usr/palm/applications/com.palm.app.messaging/&lt;br /&gt;
** stylesheets/messaging.css&lt;br /&gt;
** app/views/chatview/message/message-text.html&lt;br /&gt;
** app/controllers/chatview-assistant.js&lt;br /&gt;
* edit stylesheets/messaging.css&lt;br /&gt;
** search for the string 'messageText' and append the following after its style definition&lt;br /&gt;
&lt;br /&gt;
 .messageText pre {&lt;br /&gt;
    font-family: inherit;&lt;br /&gt;
    font-size: inherit;&lt;br /&gt;
    color: inherit;&lt;br /&gt;
 }&lt;br /&gt;
 .timeStamp {&lt;br /&gt;
    font-size: 12px;&lt;br /&gt;
    font-style: italic;&lt;br /&gt;
    color: #1111ff;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
**feel free to change the style to your liking.  I tried using 'white-space: pre-wrap' in the .messageText class but it didn't behave as expected, hence the use of the pre tag.&lt;br /&gt;
* edit app/views/chatview/message/message-text.html&lt;br /&gt;
** change the single line to:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;messageText&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;#{-messageText}&amp;lt;/pre&amp;gt; #{-errorContent}&amp;lt;span class=&amp;quot;timeStamp&amp;quot;&amp;gt;#{-timeStampText}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* edit app/controllers/chatview-assistant.js&lt;br /&gt;
** search for the string 'preFormatChatList:' and just below that look for 'var msg = stuff.list[i];'&lt;br /&gt;
** somewhere after that line (within the for loop) add the following:&lt;br /&gt;
 var ts = new Date();&lt;br /&gt;
 ts.setTime(msg.deviceTimeStamp);&lt;br /&gt;
 msg.timeStampText = Mojo.Format.formatDate(ts,'short');&lt;br /&gt;
** note that I used msg.deviceTimeStamp which I believe is when your phone sent/received the message.  If you'd prefer the time it was actually sent by the sender, use msg.timeStamp instead.  while you're in here, you may consider applying the [[Patch Messaging Change &amp;quot;Enter Key&amp;quot; To Create Newline|send on return behavior]] changes.&lt;br /&gt;
* restart LunaSysMgr or reboot&lt;br /&gt;
&lt;br /&gt;
be sure to save the files you modified as they could get overwritten on the next sprint update.  better yet, install [[Applying_Patches|quilt]] to manage the diffs as a patch.&lt;br /&gt;
&lt;br /&gt;
= Remove 5min timestamp divider =&lt;br /&gt;
&lt;br /&gt;
== Intro ==&lt;br /&gt;
The Divider popping up in messages every 5 minutes can get mildly annoying. It is possible to make it so that the divider only shows up when the message protocol/transport is changed.&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
* Complete one of the two methods above to enable timestamps in your messages.&lt;br /&gt;
* While you're in chatview-assistant.js look for &amp;quot;d.setMinutes&amp;quot; it should be around line 1232 in 1.1&lt;br /&gt;
** Find the line that says msg.dividerText = msg.transportClas; + BucketDateFormatter.getDateBucket(d,true,true);&lt;br /&gt;
** Replace it with msg.dividerText = msg.transportClass; // + BucketDateFormatter.getDateBucket(d,true,true);&lt;br /&gt;
&lt;br /&gt;
== Acknowledgements==&lt;br /&gt;
&lt;br /&gt;
Thanks to tk102 and scuba_steve on [http://www.precentral.net/ PreCentral] for the mod.&lt;/div&gt;</summary>
		<author><name>Acydlord</name></author>
	</entry>
</feed>