Ajax-ey stuff

One day I want to learn backbone.js since I think it’s a front-end framework to do facebook-ey ajax-ey stuff. Or maybe even marionette which seems to be … I dunno, more than backbone… this site might help.

Or maybe AngularJS as it seems to be more popular than backbone and/or Marionette.

Or maybe VueJS because it seems to be lighter and simpler than backbone or Angular for small apps – you can build a small demo app in almost no time. Certainly Taylor Otwell seems to like it.

There is also Mithrill … but I don’t know if it’s really the same sort of thing.

But perhaps that should come after I get a basic server-side thing working first. 🙂

Advertisements
Ajax-ey stuff

Timezones in Laravel 4, part two

(Note – this isn’t a proper blog post, it is just a dot-point list of links for my own reference. Read and/or use it at your own risk.)

A lot of people suggest saving the user’s timezone string in the User model, so dates / times stored in UTC can be displayed in the timezone for that user.

But how to get the user’s timezone string? Continue reading “Timezones in Laravel 4, part two”

Timezones in Laravel 4, part two

Dates in Laravel/PHP and MySQL

OK, so there are many, many posts out there discussing dates in MySQL and PHP, but I’m doing one more to explain what I’m going to do with my Laravel app and why.

Some background on my web app:

I want to record the time when things happen. So if a user clicked a Save button on Wednesday afternoon, I want to be able to tell them what time and on what day. Continue reading “Dates in Laravel/PHP and MySQL”

Dates in Laravel/PHP and MySQL

The Servers, the Timezones and Me

So I’m trying to write a web-based app that tracks when something happens. You click a button, and the web app records when you clicked it.

Sounds easy, no?

The problem is timezones. I live in Australia, and the web server is in the USA. So if I click a button at 8pm (in Australia), the web server records the click at 1am (in California). Or possibly 2am or 3am in California, depending on who’s in Daylight Savings and who isn’t. Other users of my app could be in any country in any timezone in the world. Continue reading “The Servers, the Timezones and Me”

The Servers, the Timezones and Me