Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:modifications:german-dateformat [2014/01/02 18:35] swarnat |
en:modifications:german-dateformat [2016/11/21 14:49] (current) swarnat |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== deutsches Datumsformat ====== | ====== deutsches Datumsformat ====== | ||
| + | ===== vtigerCRM 6.0 ===== | ||
| - | ===== vtigerCRM 6.0 RC ===== | + | **06.03.2014 UPDATE ** - Small missing line modification in last block |
| + | **19.02.2016 UPDATE ** - Tested until VtigerCRM 6.4.0 | ||
| + | **21.11.2016 UPDATE ** - Tested until VtigerCRM 6.4.0 | ||
| + | |||
| + | **After you have done this modifications, you need to clear your Browser cache!** | ||
| ==== 1. neuer Eintrag in die 'vtiger_date_format' Tabelle mit folgender Query: ==== | ==== 1. neuer Eintrag in die 'vtiger_date_format' Tabelle mit folgender Query: ==== | ||
| Line 17: | Line 22: | ||
| ==== 2. /vtlib/Vtiger/Functions.php ==== | ==== 2. /vtlib/Vtiger/Functions.php ==== | ||
| - | File: /vtlib/Vtiger/Functions.php | + | === Function: currentUserJSDateFormat($localformat) === |
| - | Function: currentUserJSDateFormat($localformat) | + | |
| An die gut erkennbare if-Anweisung folgendes anhängen: | An die gut erkennbare if-Anweisung folgendes anhängen: | ||
| Line 27: | Line 31: | ||
| </code> | </code> | ||
| - | Function: currentUserDisplayDate($value) | + | === Function: currentUserDisplayDate($value) === |
| Innerhalb der Funktion finden: | Innerhalb der Funktion finden: | ||
| Line 46: | Line 50: | ||
| ==== 3. /include/fields/DateTimeField.php ==== | ==== 3. /include/fields/DateTimeField.php ==== | ||
| - | == Funktion : __convertToDBFormat(...) [Line ~95] == | + | === Funktion : __convertToDBFormat(...) [Line ~95] === |
| folgendes an passender Stelle einfügen: (If Abfragen sind gut erkennbar) | folgendes an passender Stelle einfügen: (If Abfragen sind gut erkennbar) | ||
| Line 61: | Line 65: | ||
| An dieser Stelle wird leider ab und zu ein Format dd-mm-yyyy und die Einstellung des Users dd.mm.yyyy übergeben. Deshalb die zusätzlichen Zeilen, welche das nochmals prüfen. | An dieser Stelle wird leider ab und zu ein Format dd-mm-yyyy und die Einstellung des Users dd.mm.yyyy übergeben. Deshalb die zusätzlichen Zeilen, welche das nochmals prüfen. | ||
| - | == Funktion: __convertToUserFormat((...) [Line ~157] == | + | === Funktion: __convertToUserFormat((...) [Line ~157] === |
| folgendes an passender Stelle einfügen: (If Abfragen sind gut erkennbar) | folgendes an passender Stelle einfügen: (If Abfragen sind gut erkennbar) | ||
| Line 71: | Line 75: | ||
| </code> | </code> | ||
| - | == Funktion: convertToUserFormat(...) [Line ~139] == | + | === Funktion: convertToUserFormat(...) [Line ~139] === |
| An dieser Stelle wird das Standard-Format des Vtigers auf dd.mm.yyyy gesetzt. Diese Einstellung ist besonders für die Erweiterung PDFMaker relevant, da diese für Datumsausgaben in PDF's genutzt wird, welche aus einem Workflow genutzt werden. | An dieser Stelle wird das Standard-Format des Vtigers auf dd.mm.yyyy gesetzt. Diese Einstellung ist besonders für die Erweiterung PDFMaker relevant, da diese für Datumsausgaben in PDF's genutzt wird, welche aus einem Workflow genutzt werden. | ||
| Suchen: | Suchen: | ||
| Line 87: | Line 91: | ||
| } | } | ||
| </code> | </code> | ||
| - | == Funktion: convertToDBFormat(...) [Line ~139] == | + | === Funktion: convertToDBFormat(...) [Line ~139] === |
| Suchen: | Suchen: | ||
| Line 126: | Line 130: | ||
| ==== 5. /modules/Calendar/RepeatEvents.php ==== | ==== 5. /modules/Calendar/RepeatEvents.php ==== | ||
| - | == Function:formattime == | + | === Function: formattime === |
| Diesmal passend in die switch-Anweisung folgendes einfügen: | Diesmal passend in die switch-Anweisung folgendes einfügen: | ||
| Line 133: | Line 137: | ||
| </code> | </code> | ||
| - | ==== 6. /modules/Vtiger/helpers/Utils.php ==== | + | ==== 6. /modules/Vtiger/helpers/Util.php ==== |
| Diese Anpassung ist nur dann notwendig, wenn Ihr auch die Ausgaben der Form "Wed, Dec 18, 2013 at 15:50" anpassen möchtet, sodass am Ende "Wed, 18. Dec 2013 at 15:50 Uhr" erscheint. | Diese Anpassung ist nur dann notwendig, wenn Ihr auch die Ausgaben der Form "Wed, Dec 18, 2013 at 15:50" anpassen möchtet, sodass am Ende "Wed, 18. Dec 2013 at 15:50 Uhr" erscheint. | ||
| Line 161: | Line 165: | ||
| ==== 7. /resources/app.js ==== | ==== 7. /resources/app.js ==== | ||
| - | == Function: convertToDatePickerFormat(dateFormat) == | + | === Function: convertToDatePickerFormat(dateFormat) === |
| Auch hier ist die if-Anweisung wieder gut zu erkennen, welche durch folgendes erweitert werden muss: | Auch hier ist die if-Anweisung wieder gut zu erkennen, welche durch folgendes erweitert werden muss: | ||
| Line 194: | Line 198: | ||
| </code> | </code> | ||
| - | ==== 8. /layouts/vlayout/modules/Vtiger/resources/dashboards/Widgets.js ==== | + | ==== 8. /layouts/vlayout/modules/Vtiger/resources/dashboards/Widget.js ==== |
| - | == Funktion convertToDateRangePicketFormat == | + | === Funktion convertToDateRangePicketFormat === |
| Wieder an das Ende der if-Bedingung einfügen: | Wieder an das Ende der if-Bedingung einfügen: | ||
| Line 207: | Line 211: | ||
| ==== 9. /resources/helper.js ==== | ==== 9. /resources/helper.js ==== | ||
| - | == Function: getDateInstance : function(dateTime,dateFormat) [~Zeile 53] == | + | === Function: getDateInstance : function(dateTime,dateFormat) [~Zeile 53] === |
| Search: | Search: | ||
| <code js> | <code js> | ||
| var splittedDate = dateComponent.split("-"); | var splittedDate = dateComponent.split("-"); | ||
| + | var splittedDateFormat = dateFormat.split("-"); | ||
| </code> | </code> | ||
| Replace with: | Replace with: | ||
| Line 220: | Line 225: | ||
| } | } | ||
| var splittedDate = dateComponent.split(dotMode?".":"-"); | var splittedDate = dateComponent.split(dotMode?".":"-"); | ||
| + | var splittedDateFormat = dateFormat.split(dotMode?".":"-"); | ||
| </code> | </code> | ||