3 votes
Accepted

Date and Time formatting

You could try something like this: {if '{my_date_field format="%g:%i %a"}' == "12:00 am"} {my_date_field format=" %F %j, %Y"} {!-- date without time --} {if:else} {my_date_field format=" %F %j, %Y; %...
user avatar
  • 1,987
1 vote
Accepted

Take input as localized time of the user via channel form

AFAIK there is no automatic way to do this kind of time zone adjustment in EE. EE stores times relative to the server's location timezone, or relative a different timezone if you specify it in the CP....
user avatar
  • 3,572
1 vote

Need to calculate number of hours between two time select fields before form submission if possible

You would need to write an Accessory which uses Javascript/jQuery to grab the data in the fields (say when both fields contain something), perform the calculation and insert it into a third field. ...
user avatar
  • 7,176
1 vote
Accepted

current_time and edit_date are 5 hours off, PHP date() is correct

After working with EllisLab support on this issue, it turned out to be a rogue config item in the database for "server_offset" config item. It was set to -1140 for some reason. They were kind enough ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible