Attention all OX Users!
If you ever tried to import your contacts from CSV into Open-Xchange (or 1&1 MailExchange) you almost certainly would have failed in doing so (as I did) if you have any birthdates or anniversaries in them:
Fehlermeldung: Angegebene Zeichenkette 1981-01-20 konnte nicht in ein Datum konvertiert werden. (CON-0600,-402838903-6480)
Well, there actually are a lot of date formats out there, so you could try
20.01.1981
01/01/1981
1981/01/10
01/20/1981
... and so on
You won't get it to work?
WHY?
You have to THINK like a developer. In UNIX, everything is relative to 1970-01-01. So you give OX a UNIX date:
348793200
Thats better, no error. But the date isn't right, and the year is still 1970.
So it has to be milliseconds, then:
348793200000
Well that's better: January 19, 1981. Almost there. Just add another 12 hours:
348836400000 (OX for: 20. Jan. 1981)
Dates before 1970 are negative:
-481899600000 (24. Sept. 1954 in OX notation)
Question to OX developers: Is this a bug or a feature?
Regards
Sven
OX Build: 6.6.0-6606, 2008-09-03 15:07:54
Debian etch (64 bit)
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
If you ever tried to import your contacts from CSV into Open-Xchange (or 1&1 MailExchange) you almost certainly would have failed in doing so (as I did) if you have any birthdates or anniversaries in them:
Fehlermeldung: Angegebene Zeichenkette 1981-01-20 konnte nicht in ein Datum konvertiert werden. (CON-0600,-402838903-6480)
Well, there actually are a lot of date formats out there, so you could try
20.01.1981
01/01/1981
1981/01/10
01/20/1981
... and so on
You won't get it to work?
WHY?
You have to THINK like a developer. In UNIX, everything is relative to 1970-01-01. So you give OX a UNIX date:
Code:
date +%s -d 1981-01-20
Thats better, no error. But the date isn't right, and the year is still 1970.
So it has to be milliseconds, then:
348793200000
Well that's better: January 19, 1981. Almost there. Just add another 12 hours:
348836400000 (OX for: 20. Jan. 1981)
Dates before 1970 are negative:
-481899600000 (24. Sept. 1954 in OX notation)
Question to OX developers: Is this a bug or a feature?
Regards
Sven
OX Build: 6.6.0-6606, 2008-09-03 15:07:54
Debian etch (64 bit)
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Comment