Matukio 4(.2) is out!

It's been some time since we last blogged about Matukio (version 3 in november 2013), but as you might have noticed we've released a lot of new versions since then. We were busy improving the product and neglected the bloging for a while. So, that is why in this blog post I'll try to cover up all the important changes since version 3. That won't be that easy, as the changelog is really long.

To see Matukio 4 live in action take a look at the demo page and at the new live demo (including backend access)! Additionally we also have a "short" video showing the changes of Matukio 4: https://www.youtube.com/watch?v=HKjG4dgyRcM

Continue reading
Rate this blog entry:
0
6915 Hits
2 Comments

How to use JDate

Few days ago I decided to help Yves with a datetime bug in Matukio (dating back to its "Seminar" roots). Everything seemed to be straight forward. I've worked with JDate in the past and had some experience with timezones. So I took the challenge thinking that I'll spend 2h and everything would be fine. Well, as it often happens a 2h job turned to be a one and a half day job... (this could make a very good blog post about estimates, but I'll do that another time...)

Let us examine the problem at hand. User A fills out a form, which has a field that stores a date. The best thing to do when you store the date in the db is to convert it to UTC. Why to UTC? Well this way you can have always a starting point and when you present the output to the user you can add different timezones depending on the users position. The trick here is to convert the date back to UTC. Fortunately JDate can help us with that. If you look at the JDate class in libraries/joomla/utilities/date.php you will see that the constructor actually expects 2 parameters -> the date and the timezone. So when you save a date you would generally want to do something like this:

Continue reading
Rate this blog entry:
7
45039 Hits
3 Comments