Comments (4)
Hello,
I'm not sure you miss something, I will check asap.
from mab-lab.
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 :
Debug::logi("Seems to be a valid request... Try to decode JSON and save to DB.", 'REPORT');
$json = json_decode($data, true);
Debug::Logd($json['USER_CRASH_DATE'], 'CHECK_DATE');
// open db connection
DBHelper::open();
$values = ReportHelper::buildMySQLValuesArr($json);
Debug::Logd($json['USER_CRASH_DATE'], 'CHECK_DATE');
$result = DBHelper::insertReport($values);
This will log the user crash date, before and after convertion.
from mab-lab.
I've looked at the code and found the problem, it lies here:
public static function buildMySQLValuesArr($json) {
$json['USER_CRASH_DATE'] = self::convertRFCDateToMySQLTimestamp($json['USER_CRASH_DATE']);
$values = array();
....
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
Sergio
from mab-lab.
Thanks !
Script updated.
from mab-lab.
Related Issues (20)
- PHP warning when adding a new template
- Deleting multiple issues
- Exception for a list of devices HOT 3
- Sometimes i can't go to next issues page HOT 4
- Publication description, line breaks in textarea ignored
- "Most affected devices" query too slow (fix included) HOT 2
- Sales data, add period filtering and pagination
- Bug and issues reporting with java client HOT 2
- Need to refresh the list of issues when deleting issues
- Convert user_email and user_comment from custom data HOT 3
- Cannot Add or Delete application
- Add support of currency and add estimated revenue in sales statistics
- Complete Asset Studio integration
- Report-Details -> Pref.: Boolean values ββare not shown
- Home->Reports per Application and Reports per Android version statistics are not shown HOT 4
- INSERT REPORT ERROR HOT 8
- Stop displaying issue details in a dialog ? HOT 1
- Logs in issue report
- Don't show second and more report in one issue. HOT 1
- issue detail viewer error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mab-lab.