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
1
vote
1answer
52 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
77 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
77 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
454 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
114 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); $...