ILIAS open source Forums

Forums have been moved to the ILIAS Information Center!
Please do not post bug reports into these forums but into the Mantis Bug Tracker.
Please do not post any security exploits. Act accoring to RFPolicy and send a mail to "ilias-security AT uni-koeln DOT de" .
It is currently Fri May 24, 2013 00:28

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: umwandlung des Datums
PostPosted: Sat Mar 15, 2008 08:38 
Offline

Joined: Sat Jul 15, 2006 09:49
Posts: 34
Hallo, alle zusammen
ich moechte , alle datums wie "last update" , "created on" usw. ueberall,wo sie in gui erscheinen, in eine andere kalendar Type umgewandelt anzeigen, dabei ist es egal wie und in welchem format sie in system oder datenbank gespeichert sind. An welchen Stellen soll ich nun eingreifen um mein Code unterbringen, und die Umwandlung nur fuer Output zu realisieren. Ich habe bereits den Event Kalendar des Systems erfolgreich umgewnadelt. (ilias 3.9.1)

danke im Voraus und viele Gruesse


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 16, 2008 15:29 
Offline

Joined: Fri Jul 11, 2003 09:34
Posts: 848
Dear Melissa,

Function fmtDateTime in the file classes/class.ilFormat.php is the central place for formatting a date in ILIAS.

What exactly do you want to achieve by your changes?

I am asking, because I did some changes to this function while I was doing changes for WebDAV support. Although these changes are not directly related to WebDAV, I have marked them with BEGIN WebDAV / END WebDAV comments.

The changed code displays the word 'today', 'tomorrow' or 'yesterday' for recent dates, to make them stand out from other dates.

You can take a look a the changed code here:
http://svn.ilias.uni-koeln.de/svn/ilias ... Format.php


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 17, 2008 08:31 
Offline

Joined: Sat Jul 15, 2006 09:49
Posts: 34
Hallo werner,
ich danke Dir fuer die Antwort.
Andere Laender, andere Sprachen, andere Kalendar, wie z. B. Julian Kal., Greg. Kal., Sonnen Kal.
So moechte ich datums des Systems, wo es nur sichtbar wird, in Sonnen Kalendar gezeigt wird. Code fuer die umrechnung von Timestamp und date(...) ist bereits geschrieben. Heute ist z.B. in Sonnen Kalendar den
1386.12.27 und in drei Tagen ist es Neujahr(Anfang des Fruehlings).
Die ersten 6 Monate des Jahres sind 31 Tage und von 7. bis 11. Monat sind sie jeweils 30 Tage und der 12. Monat ist 29 Tage. Nur in Schaltjharen ist der 12. Monat 30 Tage (ca. 13 Monate nach 29 taegiger Februar wird es im Sonnen Kalendar geschaltet).

Viele Gruesse


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 17, 2008 10:06 
Offline

Joined: Fri Jul 11, 2003 09:34
Posts: 848
melissa wrote:
Hallo werner,
ich danke Dir fuer die Antwort.
Andere Laender, andere Sprachen, andere Kalendar, wie z. B. Julian Kal., Greg. Kal., Sonnen Kal.[...]


In this case, class.ilFormat.php is the right place where to do these changes.

You may want to make the choice of the calendar a user preference.
I suggest you contact the ILIAS core team on how to do this.

-Werner


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group