cancel
Showing results for 
Search instead for 
Did you mean: 

Set TimeZone in CAP

former_member674586
Discoverer
0 Kudos
554

Hi

I use the common type "Manage" of cds library but, when I save a record in my table, it is in UTC but I need to be in UTC+2

Can I set a specific TimeZone?

I use CAP in NodeJS.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

vansyckel
Advisor
Advisor
0 Kudos

Hi manuel_aguilar_blanco,

CAP treats all timestamps as UTC, so you'll need to adjust the request payload accordingly.

Best,
Sebastian

gregorw
Active Contributor

Hi Sebastian, Hi m,

I would think it's better to only adjust the TimeZone in the frontend. That's how SAPUI5 handles it. UTC timestamps are shown according to the users timezone settings. So you can also have at a later point in time users in different timezones.

Best regards
Gregor