Jump to content

Change date format TeamCal Pro


fRAiLtY-

Recommended Posts

Hi there,

 

I use TeamCal Pro which does what I need, unfortunately the e-mail it sends when holiday is scheduled in looks like this:

 

Vacation: .....U...U.U..U

 

Where I believe the .'s are the days of the month and the U's are the days booked off. This is the only bit of the script I find silly.

 

I've spoke to the developer and he tells me that this area of code is where I should be looking but I can't seem to suss out what's causing the odd display. He admits he's been lazy in his interpretation of the dates. I just want it to display the actual date(s) instead of silly dots/characters!

 

I suspect this is not enough on it's own but I'll happily produce any extra code/files you need to decipher it I just didn't want to include loads of rubbish to start with!

 

Cheers.

 

// Build approval email 
               // 
               if (!$approval_email) 
               { 
                  $anotification =$LANG['notification_greeting']; 
                  $asubject = $LANG['notification_subject_approval']; 
                  $anotification.=$LANG['notification_decl_msg_2']; 
                  $anotification.=$LANG['notification_decl_user'].$U->firstname." ".$U->lastname."\n\n"; 
                  $approval_email = TRUE; 
               } 
               $anotification.=$LANG['notification_decl_date'].$Year.sprintf("%02d",$monthno).sprintf("%02d",$ixx)."\n"; 
               $anotification.=$LANG['notification_decl_absence'].$row[0]."\n"; 
               $anotification.=$LANG['notification_decl_reason'].$_POST['txtReason']."\n\n\n"; 
            } 

 

Also I've attached editcalendar.php which is the whole file that contains this excerpt incase you need it. Lines 666-679 are the above code.

 

Cheers!

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.