Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jdate]

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

1
vote
1answer
49 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
49 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
69 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
372 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
104 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); $...