Amira
TCTwill CMS
•Created by Amira on 1/17/2025 in #👊support
Scheduled Publishing In Twill 3
Here’s what I’ve done so far:
1- Uncommented publish_start_date and publish_end_date in the migration.
Added them to the $fillable property in my model.
2- Cast these fields to datetime to avoid the DB error
My issues :
1 - Timezone Mismatch:
The time picker uses my local timezone (Europe/UTC+1), but the database saves in UTC.
This causes scheduling issues: If I select 12:00, it’s saved as 11:00, and the system shows it as published an hour earlier .
2- Should the status (e.g., "published") update automatically when the time is reached, or should I handle it with a cron job?
3- What is the best practice ,
Should times like publish_start_date be stored in DB "mysql" in UTC or my local timezone?
1 replies
TCTwill CMS
•Created by Amira on 9/27/2024 in #👊support
Adding Modules (Controllers, Repositories) in Subfolders
Hi,
I’m trying to add my custom modules (e.g., controllers, repositories) inside subfolders. However, I’m encountering an issue where Twill doesn't seem to recognize my controller in the subfolder. I get the error:
Target class [App\Http\Controllers\Twill\NewController] does not exist.
How can I make Twill recognize my controller in the subfolder [App\Http\Controllers\Twill\News\NewController] ?
Where should I configure the mapping for this?
Thanks in advance!
3 replies
TCTwill CMS
•Created by Amira on 9/12/2024 in #👊support
hideActiveCrop() Not Working in Twill 3.x
2 replies