-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date format #27
Comments
Hello, I'm not sure you miss something, I will check asap. |
The rfc is converted before being inserted into db. The value _2013-11-18T17:04:17.000+01:00_ is already converted. I need the original value. Edit the file report/report.php, line 90, change like this :
This will log the user crash date, before and after convertion. |
I've looked at the code and found the problem, it lies here: public static function buildMySQLValuesArr($json) {
only USER_CRASH_DATE is converted, adding $json['USER_APP_START_DATE'] = self::convertRFCDateToMySQLTimestamp($json['USER_APP_START_DATE']); solves the problem, I can now write successfully to DB. Thanks for your prompt response Regards |
Thanks ! Script updated. |
Hi there,
I'm facing an error so big that probably I'm doing something wrong.
I'm using Acra 4.5 to report crashes, with default configuration:
@ReportsCrashes(
formKey = "",
formUri = "http://..../report/report.php",
httpMethod = org.acra.sender.HttpSender.Method.PUT,
reportType = org.acra.sender.HttpSender.Type.JSON,
formUriBasicAuthLogin = "....",
formUriBasicAuthPassword = "....."
)
but when report get inserted to DB, I have this error:
Incorrect datetime value: '2013-11-18T17:04:17.000+01:00' for column 'user_app_start_date' at row 1
From what I read, all Acra dates are RFC 3339 formatted and MySql cannot handle this format.
Looking in the mablab.log file I get these values:
user_crash_date seems somehow converted, the other one no...
My question is: what I'm missing?
Hope you can help
Best regards
Sergio
The text was updated successfully, but these errors were encountered: