1
hawkeyegop
Changing date display in blocks (extcal and newmembers)
  • 2004/9/24 21:15

  • hawkeyegop

  • Just popping in

  • Posts: 83

  • Since: 2004/9/18


Hello guys, I'm trying to change the way the date displays in these blocks. For new members it displays year/month/day and for extcal it displays day/month/year. I'd like to change both of them to display month/day/year. Any ideas?

2
hawkeyegop
Re: Changing date display in blocks (extcal and newmembers)
  • 2004/9/25 23:57

  • hawkeyegop

  • Just popping in

  • Posts: 83

  • Since: 2004/9/18


OK, I figured out how to change the display of the core blocks, but still can't figure it out in extCal. Please, can anyone help?

3
mrgym
Re: Changing date display in blocks (extcal and newmembers)
  • 2004/9/26 2:14

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


(great module!)

Are you looking at the date format in daily_view.php?

After a quick look, it does not seem to be changable in the template.

If you are trying to change day/month/year in daily_view.php, look on line 58;

$start_date = $start_day_name." ".$start_day." ".$start_month_name." ".$start_year." ‡ ".$start_time;

Just change the order on this line and it LOOKS like the new order will be then added to the template.


4
hawkeyegop
Re: Changing date display in blocks (extcal and newmembers)
  • 2004/9/26 3:18

  • hawkeyegop

  • Just popping in

  • Posts: 83

  • Since: 2004/9/18


mrgym,

Thanks, but that did not seem to work. I should have been more specific. I'm talking about the "Upcoming Events" block on the main page. It's displaying Oct 1st as 01/10/2004.

5
hawkeyegop
Re: Changing date display in blocks (extcal and newmembers)
  • 2004/9/26 3:59

  • hawkeyegop

  • Just popping in

  • Posts: 83

  • Since: 2004/9/18


Holy goodness,

Thanks for all who replied. After messing around with this for several days, I finally figured it out.

6
rowdie
Re: Changing date display in blocks (extcal and newmembers)
  • 2004/9/26 10:18

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


I'm sorry I missed your post, but it's good hear you figured it out.

The next version of extCal has the date format as an admin option. We're working very hard to try to get it released as soon as possible. There are a lot of extra features in the new version though, so there's been a lot to do.

Rowd

7
mrgym
Re: Changing date display in blocks (extcal and newmembers)
  • 2004/9/26 14:04

  • mrgym

  • Just popping in

  • Posts: 28

  • Since: 2002/4/26


Rowdie - what is your approach to formatting the dates?

Date formats differ depending on country. Just look at the short date formats;

mm/dd/yy US only
dd/mm/yy most of europe
yy/mm/dd japan (ISO 8601?)

Will you write your own date()-derived functions? Or, use setlocale() strftime() functions?

http://www.merlyn.demon.co.uk/datefmts.htm
http://www.cs.tut.fi/~jkorpela/iso8601.html


8
zoullou
Re: Changing date display in blocks (extcal and newmembers)
  • 2004/9/26 14:23

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


For the moment we use own "date() function" but setlocale() and strftime() are very intersting. We will look this

Thanks

9
tedsmith
Re: Changing date display in blocks (extcal and newmembers)
  • 2004/9/26 14:28

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Not sure if the thread below may help anyone here with regard to date formats....

https://xoops.org/modules/newbb/viewtopic.php?topic_id=24536&forum=7#forumpost107358

10
twitaman
Re: Changing date display in blocks (extcal and newmembers)
  • 2004/10/7 20:43

  • twitaman

  • Friend of XOOPS

  • Posts: 270

  • Since: 2004/7/28


You said you finally figured it out -- but you didn't say what you did to correct it. What did you figure out, could you post your solution please. Thanks.

Login

Who's Online

241 user(s) are online (165 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits