changeset 676:0d5fb0f585f1

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 23 Mar 2015 18:04:59 +0100
parents fe527f380b10 (current diff) 6160b7be468a (diff)
children 394c12b7bb21 60a3e9809ea4
files
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/resources/lib/translations_de.js	Mon Mar 23 18:03:48 2015 +0100
+++ b/resources/lib/translations_de.js	Mon Mar 23 18:04:59 2015 +0100
@@ -20,8 +20,19 @@
         Ext.grid.RowEditor.prototype.dirtyText = "Sie müssen Ihre Änderungen Speichern oder durch Abbrechen verwerfen";
     }
 
+// Ext has to send timezone-information when saving date-objects
+// If not: Datetime-information will be falsified when a date-object is saved
+// i.e
+// originaltime 8:00 (save) -> time+offset 9:00 (save) -> 10:00 -> etc...
+Ext.JSON.encodeDate = function(o)
+{
+    return '"' + Ext.Date.format(o, 'c') + '"';
+}
+
+
 });
 
+
 //Übersetzungsfehler
 Ext.define("Ext.locale.de.toolbar.Paging", {
     override: "Ext.PagingToolbar",

http://lada.wald.intevation.org