F
Filament4mo ago
wazkaz

Global setting for TextColumn partially working

Hello, I trying to use the global setting for TextColumn but only partially working. It is working on a resource page, but in a relation manager not working. This is the code what I am using:
TextColumn::configureUsing(function (TextColumn $textColumn): void {
$textColumn->timezone('Europe/Bucharest');
});
TextColumn::configureUsing(function (TextColumn $textColumn): void {
$textColumn->timezone('Europe/Bucharest');
});
6 Replies
bernhard
bernhard4mo ago
Are you sure, that its not working? I tried this:
TextColumn::configureUsing(function (TextColumn $textColumn): void {
$textColumn->description("xxx");
});
TextColumn::configureUsing(function (TextColumn $textColumn): void {
$textColumn->description("xxx");
});
And I can see the description "xxx" on all $esources and all RelationManager.
Dennis Koch
Dennis Koch4mo ago
I guess we need to see your RelationManager code then. Because TextColumn itself is independent from Resources or Relation Managers.
wazkaz
wazkazOP4mo ago
I tried this too, the description is on everywhere. But the timezone still not changed everywhere. I also tried to add the timezone change directly to the TextColumn where is not worked, but that didn't work either.
wazkaz
wazkazOP4mo ago
No description
wazkaz
wazkazOP4mo ago
Okay, I found a workaround. If I add the dateTime function to the TextColumn, in that case the timezone is applied.
Dennis Koch
Dennis Koch4mo ago
That's not a workaround but how it should be used. How would you set the timezone of a non-date entry?
Want results from more Discord servers?
Add your server