Fixed bug #10186: Time shifting (again) in datetime fields (followup to Bug #8746)
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Tue, 20 Jan 2009 10:36:33 +0000 (10:36 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Tue, 20 Jan 2009 10:36:33 +0000 (10:36 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-2@4772 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/jsfunc.evalfield.js

index 1cab115..d393572 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-20  Ingmar Schlecht  <ingmar@typo3.org>
+
+       * Fixed bug #10186: Time shifting (again) in datetime fields (followup to Bug#8746; thanks to Ernesto Baschny)
+
 2009-01-20  Ingo Renner  <ingo@typo3.org>
 
        * Added missing license statement for using the "Silk" icon set of Mark James according to Creative Commons Attribution 2.5
index 93bfaee..2886b47 100755 (executable)
@@ -509,7 +509,7 @@ function evalFunc_getTimestamp(timeObj)     {
 
 // Substract timezone offset from client to a timestamp to get UTC-timestamp to be send to server
 function evalFunc_convertClientTimestampToUTC(timestamp, timeonly)     {
-       var timeObj = new Date(timestamp);
+       var timeObj = new Date(timestamp*1000);
        timeObj.setTime((timestamp - timeObj.getTimezoneOffset()*60)*1000);
        if (timeonly)   {
                        // only seconds since midnight