How to change source code to up end year (2020 to 2030?

How to change source code to up end year (2020 to 2030?

ໂດຍ thanit phaymas -
ຈຳນວນການຕອບກັບ: 5

Dear sir,

I'm sorry my english is not so good. ,

In moodle  ,  I can set endyear is 2020 , this year is finish

but I need to set to 2030 .  how to change or  what file or sourcecode  to edit ?

Thank you very much

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ thanit phaymas

Re: How to change source code to up end year (2020 to 2030?

ໂດຍ Chris Collman -
ຮູບພາບຂອງ Documentation writers
Hi Thanit,
Do not worry about your english. It will just take a little more time.

Question: What version of Moodle are you using?

Chris

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ thanit phaymas

Re: How to change source code to up end year (2020 to 2030?

ໂດຍ Chris Collman -
ຮູບພາບຂອງ Documentation writers
I posted a question in the developers forum here:
http://moodle.org/mod/forum/discuss.php?d=67605

I would like to change the lower date from 1970 to 2000. Good question.

Chris


ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ thanit phaymas

Re: How to change source code to up end year (2020 to 2030?

ໂດຍ Joseph Rézeau -
ຮູບພາບຂອງ Core developers ຮູບພາບຂອງ Particularly helpful Moodlers ຮູບພາບຂອງ Plugin developers ຮູບພາບຂອງ Testers ຮູບພາບຂອງ Translators

Dear Thanit,

So you hope that the following will still be in existence in the year 2030: Moodle, yourself, our planet, ...? I admire your optimism.

All the best,

Joseph (who most likely will no longer be alive in 2030 to post his cynical remarks here in these forums).wink

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ thanit phaymas

Re: How to change source code to up end year (2020 to 2030?

ໂດຍ Fai Wong -

I am using 2.2.3.

In /moodle/lib/form/

update dateselector.php and datetimeselector.php

var $_options = array('startyear' => 1970, 'stopyear' => 2030, 'defaulttime' => 0,
'timezone' => 99, 'applydst' => true, 'step' => 5, 'optional' => false);

 

ການຈັດອັນດັບສະເລ່ຍ: -