![]() |
FAQ/Help |
Calendar |
Search |
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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
|
||||
|
||||
well, that sux.
nice job on answering questions, btw. |
#4
|
|||
|
|||
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 |
|