Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2709 Lượt xem

This is the event model from the calendar model using V14e

t-field="event.with_context(tz=event.event_tz).start" t-options='{"widget": "date","format": "EEEE dd-MMMM-yyyy"}


Shows " Sunday 09-April-2023"

But remove the t-options and it shows the time in my timezone.

t-field="event.start"

Shows "10/04/23 06:00:00" - this in my timezone. 

How do I keep the custom formatting and the timezone? 


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 25
67669
1
thg 3 25
2570
0
thg 8 22
3623
0
thg 4 21
5397
1
thg 9 23
3266