phpScheduleIt
May 18, 2013, 07:53:18 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Change teh day order and date format in calendar?  (Read 468 times)
joseluisgs
Newbie
*

Karma: 0
Posts: 26


« on: April 12, 2012, 05:24:22 AM »

Hi.

Thank you very much for this version!

Is there any way to change the order of the day in reources calendar o my calendar?, I mean, to change the day to star with monday and not sunday
And change the date format, for example use 24 hours and day/month format?

Thank you very much!
Logged
joseluisgs
Newbie
*

Karma: 0
Posts: 26


« Reply #1 on: April 12, 2012, 05:31:29 AM »

My version is 2.1
Logged
joseluisgs
Newbie
*

Karma: 0
Posts: 26


« Reply #2 on: April 12, 2012, 06:57:51 AM »

Ok

Change the day for me is impossible. I don't know how

To change de date format in calendar go to
  C:\xampp\htdocs\tpl\Calendar\calendar.common.tpl (1 hits)
   Line 35: $(document).ready(function() {
  C:\xampp\htdocs\tpl\Calendar\mycalendar.common.tpl (1 hits)
   Line 41: $(document).ready(function() {

Change timeFormat: '{$TimeFormat}' -> timeFormat: 'H:mm'
Change dayMonth: '{$DateFormat}' -> dayMonth: 'd/M''

anybody could help me to start with monday?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #3 on: April 12, 2012, 01:56:39 PM »

In Web/scripts/calendar.js, find this line:

Code:
axisFormat: _options.timeFormat
and change it to:

Code:
axisFormat: _options.timeFormat,
firstDay: 1
Logged
joseluisgs
Newbie
*

Karma: 0
Posts: 26


« Reply #4 on: April 13, 2012, 05:29:46 AM »

Upps, now my calendar disappear :S

Logged
joseluisgs
Newbie
*

Karma: 0
Posts: 26


« Reply #5 on: April 13, 2012, 05:47:31 AM »

Fixed it! Wink
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!