Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
Old Jul 21, 2002, 12:00 PM
evil_jimi evil_jimi is offline
Junior Member
 
Member Since: Jul 2002
Location: Sth Oz, Downunder
Posts: 9
Hi DocJohn (or anyone else who may have a solution), in your Open Journal, the time an entry is submitted shows up with two digits for hour, minute and second. [i.e. (Posted at 03:01:30 PM EDT.)] The Journal I'm attempting to set up at the moment only displays a single digit for hour, minute and second. [i.e. Posted at 0: 4:14 AM CST ] (Oh and as you can see, it's posting a 0 instead of a 12) Do I need to change something in the Config file, or is this something to do with the way my host's linux server is configured?

Thanks for any help that may be forthcoming.

EJ


advertisement
  #2  
Old Jul 24, 2002, 12:26 AM
evil_jimi evil_jimi is offline
Junior Member
 
Member Since: Jul 2002
Location: Sth Oz, Downunder
Posts: 9
Unfortunately, it does appear to be a fault with my host's time configuration. They say it's set up properly but that's a crock.

  #3  
Old Jul 24, 2002, 05:21 AM
splash's Avatar
splash splash is offline
Member
 
Member Since: May 2001
Location: Massachusetts, USA
Posts: 176
well, that sux.

nice job on answering questions, btw.

  #4  
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.

Reply
Views: 301

attentionThis is an old thread. You probably should not post your reply to it, as the original poster is unlikely to see it.




All times are GMT -5. The time now is 04:40 AM.
Powered by vBulletin® — Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.




 

My Support Forums

My Support Forums is the online community that was originally begun as the Psych Central Forums in 2001. It now runs as an independent self-help support group community for mental health, personality, and psychological issues and is overseen by a group of dedicated, caring volunteers from around the world.

 

Helplines and Lifelines

The material on this site is for informational purposes only, and is not a substitute for medical advice, diagnosis or treatment provided by a qualified health care provider.

Always consult your doctor or mental health professional before trying anything you read here.