File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ protected function fillRows($rows)
194194 break ;
195195
196196 case 'TIMESTAMP ' :
197- $ _row [$ column ['name ' ]] = is_numeric ($ value ) ? date ('Y-m-d H:i:s ' , $ value /1000000 ) : $ value ;
197+ $ _row [$ column ['name ' ]] = is_numeric ($ value ) ? date ('Y-m-d H:i:s.u ' , $ value /1000000 ) : $ value ;
198198 break ;
199199
200200 case 'DATETIME ' :
Original file line number Diff line number Diff line change 77
88class TimestampType extends DatetimeType
99{
10+ /**
11+ * @var string
12+ */
13+ protected static $ datetime_format = 'Y-m-d\TH:i:s.u\Z ' ;
1014
1115 protected $ ydb_key_name = "uint64_value " ;
1216
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ public function test(){
146146 "Timestamp " => [
147147 "class " => TimestampType::class,
148148 "values " => [
149- "2023-06-14 17:12:15 "
149+ "2023-06-14 17:12:15.000000 "
150150 ]
151151 ]
152152 ];
You can’t perform that action at this time.
0 commit comments