<commit_before><?php
declare(strict_types = 1);

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class MeetingDay extends Model
{
  protected $fillable = ['meeting_id', 'day', 'from', 'to'];
  protected $hidden = ['meeting_id', 'id'];
  protected $dates = ['day'];
  public $timestamps = false;

  public function hours(): HasMany
  {
    return $this->hasMany(MeetingDayHour::class);
  }
}<commit_msg>Improve date handling (with JS date format)<commit_after><?php
declare(strict_types = 1);

namespace App;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class MeetingDay extends Model
{
  protected $fillable = ['meeting_id', 'day', 'from', 'to'];
  protected $hidden = ['meeting_id', 'id'];
  protected $dates = ['day'];
  public $timestamps = false;

  public function setDayAttribute($value)
  {
    $this->attributes['day'] = Carbon::createFromFormat('Y-m-d\\TH:i:s.uZ', $value);
  }

  public function hours(): HasMany
  {
    return $this->hasMany(MeetingDayHour::class);
  }
}
{'fraction_non_alphanumeric': 0.1557155715571557, 'fraction_numerical': 0.0018001800180018, 'mean_word_length': 5.1098901098901095, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6842137', 'n_tokens_mistral': 381, 'n_tokens_neox': 376, 'n_words': 84}