msg# 1
Is there a way to make the time selectable in AM/PM format instead of Military time? My users are too confused!
Votes:3
Average:10.00
msg# 1.1
hi nicepants.
In Japan, descripting by 24hour is standard.
Only some old fassioned people use 12hour.
I'm interested with the fact that 24hour is only used in military in your country.
BTW, this is a lanugage issue.
What language do you use?
Edit language/(your language)/pical_constants.php
eg)
// format for date() see http://jp.php.net/date
define('_PICAL_DTFMT_TIME','a g:i') ;
// set your locale
define('_PICAL_LOCALE','en_US') ;
// format for strftime() see http://jp.php.net/strftime
define('_PICAL_STRFFMT_DATE','%d %b %Y (%a)') ;
define('_PICAL_STRFFMT_DATE_FOR_BLOCK','%d %b') ;
define('_PICAL_STRFFMT_TIME','%p %I:%M') ;
Votes:0
Average:0.00
msg# 1.1.1
hey thanks! iw as actually going to ask about that. i'm in the US and it's referred to as military time here too (because they're the only ones who really use it). a 12 hour clock is standard in the US.
Votes:0
Average:0.00
msg# 1.1.1.1
hi joeblow.
I'll set 12 hour as the default of piCal/language/english .
Votes:0
Average:0.00
msg# 1.1.2
Quote:
I'm interested with the fact that 24hour is only used in military in your country
It is pretty much the same in Australia, most people still use 12 hour clocks
I did the hack above, should it also change the dates on the submission page as well?
I am having a little look cause I like to learn, rather then just ask lots of questions
Thanks
Pete
Votes:0
Average:0.00
msg# 1.1.2.1
Quote:
I did the hack above, should it also change the dates on the submission page as well?
No.
Although I know that it should be fixed, I dare not to touch this for the next evolution with javascript calendar.
If you change it soon, see
http://www.peak.ne.jp/xoops/modules/xhnewbb/viewtopic.php?topic_id=271&forum=1&post_id=10...Thanks to AZNative!
Votes:6
Average:10.00
msg# 1.1.3
Quote:
// format for date() see http://jp.php.net/date
define('_PICAL_DTFMT_TIME','a g:i') ;
// set your locale
define('_PICAL_LOCALE','en_US') ;
// format for strftime() see http://jp.php.net/strftime
define('_PICAL_STRFFMT_DATE','%d %b %Y (%a)') ;
define('_PICAL_STRFFMT_DATE_FOR_BLOCK','%d %b') ;
define('_PICAL_STRFFMT_TIME','%p %I:%M') ;
With the above, the am/pm is coming before the time, at least on my Web (e.g. am 8:00), so I've changed the 2nd and last line to:
// format for date() see http://jp.php.net/date
define('_PICAL_DTFMT_TIME','g:i a') ; // <==
// set your locale
define('_PICAL_LOCALE','en_US') ;
// format for strftime() see http://jp.php.net/strftime
define('_PICAL_STRFFMT_DATE','%d %b %Y (%a)') ;
define('_PICAL_STRFFMT_DATE_FOR_BLOCK','%d %b') ;
define('_PICAL_STRFFMT_TIME','%I:%M %p') ; //<==
and now it works very nicely. Thanks!
Votes:0
Average:0.00
msg# 1.1.3.1
How do you make the drop down menus that select the times reflect the am / pm choices rather than the 24 hour choices?
Votes:2
Average:0.00
msg# 1.1.3.1.1
Votes:4
Average:10.00
msg# 1.1.3.1.1.1
Thank you very much!
That solved the problem.
Best wishes,
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1
I went to that topic and keep getting errors.
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1
This is a too old topic.
If you want to use 12hour system in piCal >= 0.8, all you have to do is changing the value of piCal's preferences.
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1
I have done that. but the dropdown menu where users pick the time is still 24 hour.
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1
Quote:
pvtpyro wrote:
I have done that. but the dropdown menu where users pick the time is still 24 hour.
OK.
I've just fixed.
Since I never use 12hour system, I'm appreciated if people using 12hour system report bugs to me.
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1
Awesome fix! My live site is still on 0.6 and my test site I just upgraded to 0.8. So this thread helped tons!
I would like to be able to change it from saying AM 10:30 to 10:30 AM. Where could I set this?
Also, I get 'calendar' is undefined, but I am pretty sure it is because I did not get the js files in the right spot.
Could you please clarify the path for the common/jscalendar files?
Thanks, and I agree with you, the 24 hour clock is a smarter way to go, but alas, like the metric system, it will never catch on here in the US with the regular folk.
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1.1
hi nmbsailorgal.
I'm sorry that my answer is too late.
Quote:
Also, I get 'calendar' is undefined, but I am pretty sure it is because I did not get the js files in the right spot.
Could you please clarify the path for the common/jscalendar files?
The archive:
--+common --+jscalendar
|
+modules--+piCal
Copy "common" into your root of XOOPS.
You can also see this.
http://www.peak.ne.jp/xoops/md/myalbum/photo.php?lid=46&cid=1
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1.1.1
Using piCal 0.83
All of the 12 hour time features are wonderful. Thanks.
A few things I can't figure out how to change:
1. The order of the information in the detail view.
Currently detail view begin/finish datetime shows:
Wednesday, September 14, 2005 AM 9:15 (GMT-05:00)
I would like to move the AM/PM behind the clock time so that it shows as: Wednesday, September 14, 2005 9:15 AM (GMT-05:00)
(Order could also be changed on the pop-up selector list in the editing view, but that is less important than on the detail view.)
Saw some previous threads, but couldn't figure out how to make the change in 0.83
2. How to not display the (GMT-05:00) info on the detail view. - don't need it for a particular site.
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1.1.1.1
One other minor thing:
PM 0 should read "12 Noon" in the pop up list for adding events.
Our US users couldn't figure that one out on their own.
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1.1.1.1.1
Greetings piCal Xoopsers and Japanese friends--
With all due apologies and respect to the Gunnery Sergeant, I have the same needs as this fellow andycleff whose request went unanswered.
1) -- I have set up a Xoops site for a Fitness Club using piCal for the schedule of events. The main problem is that AM and PM is always shown *after* the time in North America (1:00 PM instead of PM 1:00). Digging into the English template, I didn't see a way to easily change that.
From pical_vars.phtml:
Quote:
// Hour names for 12hour system
$this->hour_names_12 = array(
'AM 0','AM 1','AM 2','AM 3','AM 4','AM 5',
'AM 6','AM 7','AM 8','AM 9','AM 10','AM 11',
'PM 0','PM 1','PM 2','PM 3','PM 4','PM 5',
'PM 6','PM 7','PM 8','PM 9','PM 10','PM 11',
'next AM 0','next AM 1','next AM 2','next AM 3','next AM 4','next AM 5',
'next AM 6','next AM 7','next AM 8','next AM 9','next AM 10','next AM 11'
) ;
Simply making 'AM 1' into '1 AM' will not fix the problem.
2)-- Also, 0:00 AM is called "12:00 AM" or "12:00 midnight" and 12:00 PM is usually referred to as "12:00 noon"
3)-- Also, since all the health club members are in the same time zone, we don't need "(GMT-06:00)" to show anywhere. Is there an easy way to delete that in piCal?
Many thanks!
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1.1.1.1.1.1
^bump^
anyone?
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1.1.1.1.1.1.1
Same here! Anyone with a suggestion on how to get rid of the "next" before next day's time?
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1
Anyone who could help on this?
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1
If you want to do ...
---
How to get rid of "next" prefix when the end time is after midnight
---
Just edit the language file.
Read this thread again.
Votes:0
Average:0.00
msg# 1.1.3.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1
Thanks, it did work!!!
Votes:0
Average:0.00