Thread: PTIME
View Single Post
 
Old Jul 28, 2002, 10:56 PM
evil_jimi evil_jimi is offline
Junior Member
 
Member Since: Jul 2002
Location: Sth Oz, Downunder
Posts: 9
It sucketh no more! By sheer luck I was able to come up with a solution.

In the cfg file, John has (sans any of the spaces after "sprintf"):
<pre>$ptime = sprintf("% 0 2 i:% 0 2 i:% 0 2 i %s %s",($hour % 12),$minute,$second,$ampm,$timezone);
</pre>
but by changing the "i" to "d" (again, sans any of the spaces after "sprintf") ...
<pre>$ptime = sprintf("% 0 2 d:% 0 2 d:% 0 2 d %s %s",($hour % 12),$minute,$second,$ampm,$timezone);
</pre>
I was able to make it work on my server. w00t!

nice job on answering questions, btw.

Thanks, cob ... I don't know much, except how frustrating it can be not being able to get these scripts to work, so if I can help some out in whatever way I can, I'm happy to try.