Questions tagged [jdate]
Helper class, extended from PHP's DateTime class, which allows to handle date formatting more efficiently.
7
questions
5
votes
1
answer
576
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 ...
3
votes
2
answers
162
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
1
answer
98
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=...
2
votes
1
answer
144
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);
$...
1
vote
1
answer
70
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 ...
1
vote
1
answer
311
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 ...
0
votes
1
answer
87
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 ...