1
mharoun
AgendaX v2.1 :: How to change date format?
  • 2004/6/19 19:48

  • mharoun

  • Just popping in

  • Posts: 59

  • Since: 2004/3/6 1


Hi there,

I'm unable to change the date format in the Agenda X module. The current format is Y,M,D and I want to change it to M,D,Y (I want to do this change for the whole module views and blocks)

I couldn't find an answer through the support site, quite honest, the support forum is dead!

Any help?

2
user999
Re: AgendaX v2.1 :: How to change date format?
  • 2004/6/21 2:09

  • user999

  • Just popping in

  • Posts: 28

  • Since: 2004/3/12


You are right. Posts made to the support forum never gets answered. I find the order in which the events appear in the upcoming events strange. First few links are sorted properly, then the order changes randomly. Can't seem to figure why this happen. Does anyone has this same problem?

Regarding the date problem you can find the solution in the forum
https://xoops.org/modules/newbb/viewtopic.php?forum=20&topic_id=15231

Hope this helps

3
mharoun
Re: AgendaX v2.1 :: How to change date format?
  • 2004/6/22 17:56

  • mharoun

  • Just popping in

  • Posts: 59

  • Since: 2004/3/6 1


Thanks user999 for your help. I was able to change the date format for the whole web site, but it never reflects on the Agenda Module!!, it still show the date in : (YYYY.MM.DD)

Any Advice?

Also I agree with you regarding the upcoming events blocks, it has a strange order that does not make any sense some times.

=======================
Upcoming 30 day events
Meeting1(2004.6.18)
Meeting2(2004.5.28)
Meeting3(2004.6.20)
=======================

This is the code that used to populate the above block>>

//////////////////////
<{if $block.contents}>
<{foreach item=event from=$block.contents}>
  • <{$event}>

  • <{/foreach}>
    <{/if}>
    //////////////////////

    Any help in this regard?

    4
    mharoun
    Re: AgendaX v2.1 :: How to change date format?
    • 2004/6/27 14:16

    • mharoun

    • Just popping in

    • Posts: 59

    • Since: 2004/3/6 1


    Is there is anyone there willing to help?

    5
    evylrat
    Re: AgendaX v2.1 :: How to change date format?
    • 2004/6/27 16:04

    • evylrat

    • Not too shy to talk

    • Posts: 164

    • Since: 2004/2/25


    I did it on my site

    open minical.php and look for occurances of

    Quote:

    $title."($y.$m.$d)".


    and replace with

    Quote:

    $title."($d.$m.$y)".


    Should be there twice. Now, if I can only do that for the rest of Agenda. OR make it comply with XOOPS date formats used in News and Forum etc.

    6
    mharoun
    Re: AgendaX v2.1 :: How to change date format?
    • 2004/7/2 1:48

    • mharoun

    • Just popping in

    • Posts: 59

    • Since: 2004/3/6 1


    Quote:
    Now, if I can only do that for the rest of Agenda. OR make it comply with XOOPS date formats used in News and Forum etc.


    evylrat, do you ask me this question? sorry, but I didn't get what you mean.

    Anyhow, I was able to change the date formate in the Upcoming events / Upcoming 30 days events blocks, but not in the minical Calender main block, as well as the monthly/weekly view.

    Any advice?

    7
    wjue
    Re: AgendaX v2.1 :: How to change date format?
    • 2004/7/2 13:54

    • wjue

    • Quite a regular

    • Posts: 315

    • Since: 2002/8/3 7


    In other parts of Agenda-X the date format is controled by the XOOPS constant _SHORTDATESTRING (in language/xxxxxx/global.php file)

    ex:

    define("_SHORTDATESTRING","Y/n/j");

    I will make this applying to the whole script


    wjue

    8
    evylrat
    Re: AgendaX v2.1 :: How to change date format?
    • 2004/7/2 18:13

    • evylrat

    • Not too shy to talk

    • Posts: 164

    • Since: 2004/2/25


    I had already changed that on my website. But it remains the same in AgendaX

    http://www.cheshair.com

    Have a peek.

    9
    mharoun
    Re: AgendaX v2.1 :: How to change date format?
    • 2004/7/3 16:55

    • mharoun

    • Just popping in

    • Posts: 59

    • Since: 2004/3/6 1


    I did the same thing, the date is showing with the new format in all other XOOPS modules.

    For AgendaX, the upcoming events block is showing the date with the new format, but the minical block and all calendar views still showing with the old format!

    Take a look...(site under construction)
    http://www.mydo.ca/home/

    Any help?

    10
    evylrat
    Re: AgendaX v2.1 :: How to change date format?
    • 2004/7/3 19:26

    • evylrat

    • Not too shy to talk

    • Posts: 164

    • Since: 2004/2/25


    nice site, I like the drop down menus. I'm debating whether to try and break the TAB MOD download for the website. I got the minical one working, can't remember what I changed so I can email you the file if you want.

    Login

    Who's Online

    275 user(s) are online (167 user(s) are browsing Support Forums)


    Members: 0


    Guests: 275


    more...

    Donat-O-Meter

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

    Latest GitHub Commits