Commit a14c409
committed
fix(tables): default a date conversion to date-only, like a create
Converting a column to Date silently opted it into times while creating one
gave date-only. The seed read `existingColumn?.includeTime !== false`, and on a
column that is not yet a date that key is simply absent — so the expression
answered `true`, and the save sent `includeTime: true` alongside the type
change.
Only an existing date column now answers from its own value (absent there means
a column predating the key, which does hold instants). Every other starting
point takes the date-only default a new date column gets. The seed and the
dirty-check read one `baselineIncludeTime` so they cannot answer differently.1 parent 66ab0a9 commit a14c409
1 file changed
Lines changed: 18 additions & 7 deletions
File tree
- apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/column-config-sidebar
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
120 | 136 | | |
121 | 137 | | |
122 | 138 | | |
| |||
142 | 158 | | |
143 | 159 | | |
144 | 160 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 161 | + | |
150 | 162 | | |
151 | 163 | | |
152 | 164 | | |
| |||
228 | 240 | | |
229 | 241 | | |
230 | 242 | | |
231 | | - | |
232 | | - | |
| 243 | + | |
233 | 244 | | |
234 | 245 | | |
235 | 246 | | |
| |||
0 commit comments