Skip to content
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

Illuminate\Database\QueryException: SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '2023-08-29T17:00:00.000000Z... #113

Open
sentry-io bot opened this issue Oct 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 27, 2023

Sentry Issue: SENSASI-LOGISTIC-MIS-3B

PDOException: SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '2023-08-29T17:00:00.000000Z' for column 'expired_at' at row 1
  File "/app/Repositories/MaterialInRepository.php", line 69, in App\Repositories\MaterialInRepository::update
    ['qty', 'price', 'manufactured_at', 'expired_at']
  File "/app/Http/Controllers/MaterialInController.php", line 21, in App\Http\Controllers\MaterialInController::repoHandler
    $materialIn = $this->repo->$action($data);
  File "/app/Http/Controllers/MaterialInController.php", line 39, in App\Http\Controllers\MaterialInController::update
    return $this->repoHandler('update', $request);
  File "/home/senlogxy/domains/demo-senlog.cu.ma/public_html/index.php", line 52
    $request = Request::capture()
...
(67 additional frame(s) were not displayed)

Illuminate\Database\QueryException: SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '2023-08-29T17:00:00.000000Z' for column 'expired_at' at row 1 (SQL: insert into `material_in_details` (`expired_at`, `manufactured_at`, `material_id`, `material_in_id`, `price`, `qty`) values (2023-08-29T17:00:00.000000Z, ?, 12, 51, 10000, 25) on duplicate key update `qty` = values(`qty`), `price` = values(`price`), `manufactured_at` = values(`manufactured_at`), `expired_at` = values(`expired_at`))
  File "/app/Repositories/MaterialInRepository.php", line 69, in App\Repositories\MaterialInRepository::update
    ['qty', 'price', 'manufactured_at', 'expired_at']
  File "/app/Http/Controllers/MaterialInController.php", line 21, in App\Http\Controllers\MaterialInController::repoHandler
    $materialIn = $this->repo->$action($data);
  File "/app/Http/Controllers/MaterialInController.php", line 39, in App\Http\Controllers\MaterialInController::update
    return $this->repoHandler('update', $request);
  File "/home/senlogxy/domains/demo-senlog.cu.ma/public_html/index.php", line 52
    $request = Request::capture()
...
(65 additional frame(s) were not displayed)
@sentry-io sentry-io bot added the bug Something isn't working label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

0 participants