Hello,
I tried to add a field with time when a user submit a form> i have add a value & placeholder with value {date:ctime} but the issue i get the UTC time instead of PARISS TIME TAHT IS UTC + 1, I have also tried {data:} and {date:H:i} but unsuccessfully. My server time is Europe/Paris and joomla timezone paris. Please let me know how I can get the Paris time. I read this and tried all:
[h3]Date and Time[/h3]
Get the current UTC date in Y-m-d H:i:s format: {date:},
Pass a desired date/time format using the PHP format strings: {date:H:i}
Pass a date value to be formatted: {date:Y-m-d$(var:some_date_value_or_timestamp)}
Set the timezone to the one used by your site {date/site:}
Set a timezone {date/region/time_zone:format_string}
From CFv6.0.21 you can use this provided that the Region and Timezone are recognised by PHP - see the PHP docs here. If your entries are not valid you will get an Error :-(
Set a future date/time {date:format_string $+ xx days yy hours}
These can be combined as in this example from user healyhatman {date/AEST:h:i:s a d-m-Y e$+ 10 days 3 hours} which returns a date string like this: 02:04:36 pm 23-04-2018 Australia/Sydney
I tried to add a field with time when a user submit a form> i have add a value & placeholder with value {date:ctime} but the issue i get the UTC time instead of PARISS TIME TAHT IS UTC + 1, I have also tried {data:} and {date:H:i} but unsuccessfully. My server time is Europe/Paris and joomla timezone paris. Please let me know how I can get the Paris time. I read this and tried all:
[h3]Date and Time[/h3]
Get the current UTC date in Y-m-d H:i:s format: {date:},
Pass a desired date/time format using the PHP format strings: {date:H:i}
Pass a date value to be formatted: {date:Y-m-d$(var:some_date_value_or_timestamp)}
Set the timezone to the one used by your site {date/site:}
Set a timezone {date/region/time_zone:format_string}
From CFv6.0.21 you can use this provided that the Region and Timezone are recognised by PHP - see the PHP docs here. If your entries are not valid you will get an Error :-(
Set a future date/time {date:format_string $+ xx days yy hours}
These can be combined as in this example from user healyhatman {date/AEST:h:i:s a d-m-Y e$+ 10 days 3 hours} which returns a date string like this: 02:04:36 pm 23-04-2018 Australia/Sydney