People who code: we want your input. Take the Survey

Questions tagged [jdate]

Helper class, extended from PHP's DateTime class, which allows to handle date formatting more efficiently.

Filter by
Sorted by
Tagged with
0
votes
1answer
37 views

How can I use JDate to work with UK times to include BST and GMT?

In the UK, we have GMT (Greenwhich Mean Time) for half the year and then we put the clocks forward by an hour to BST (British Summer Time) for the other half of the year. How can I handle this issue ...
1
vote
1answer
67 views

How to use JDate / HTMLHelper inside model?

So I have this component (built with JCB) where I need to display a saved datetime from the db (without seconds, but that's not my focus right now). Because of some limitations, I cannot simply ...
1
vote
1answer
58 views

How to add 5 hours to a datetime stamp?

I've set up an edit column in the database, it stamps the correct time whenever a change is made to the database entry. For some odd reason whenever this datetime displays it displays 5 hours behind ...
3
votes
2answers
130 views

How to use convert_tz in a joomla query?

This is my current query: $uvdatetime = JFactory::getDate('now', new DateTimeZone('Europe/Athens')); $db = JFactory::getDbo(); $query = $db->getQuery(true); $query->select("distinct ". $db-&...
2
votes
1answer
81 views

Strange behavior with dates

I would like to store the input of the calendar-field in my JTable::store. To do so I'm doing this: Form-declaration: <field name="creationdate" type="calendar" default=...
5
votes
1answer
548 views

Incorrect Timezone in formatted output with JDate

I'm able to get the right "time" to display, but I am NOT able to show the correct Timezone in the formatted date that is output to the user. I've been trying what I can find online and the docs, but ...
2
votes
1answer
129 views

How to set timeoffset for a specific date with JDdate

I tried to apply timezone offset to a variable. Here is my code $time_offset = "Australia/Sydney"; $start_time = "2015-07-31 15:03:00"; $date_end = JDate::getInstance('now', $time_offset); $...