[Lada-commits] [PATCH] Ext sends timezone information to the server to prevent accidental changes in times
Wald Commits
scm-commit at wald.intevation.org
Mon Mar 23 12:57:21 CET 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1427112910 -3600
# Node ID 6160b7be468ab97ec33fc182cf241d9783c8b768
# Parent 08e3e7b80a34592ef6ae3c1b8cd5710d89d07876
Ext sends timezone information to the server to prevent accidental changes in times
diff -r 08e3e7b80a34 -r 6160b7be468a resources/lib/translations_de.js
--- a/resources/lib/translations_de.js Fri Mar 20 11:25:48 2015 +0100
+++ b/resources/lib/translations_de.js Mon Mar 23 13:15:10 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",
More information about the Lada-commits
mailing list