This is the matrix that I calculated. It might be that it's for a righthand coordinate system though. That might be why
Code:
[              cos(ty)*cos(tz),             -cos(ty)*sin(tz),     sin(ty),0]
[ cos(tx)*sin(tz) + cos(tz)*sin(tx)*sin(ty), cos(tx)*cos(tz) - sin(tx)*sin(ty)*sin(tz), -cos(ty)*sin(tx),0]
[ sin(tx)*sin(tz) - cos(tx)*cos(tz)*sin(ty), cos(tz)*sin(tx) + cos(tx)*sin(ty)*sin(tz), cos(tx)*cos(ty),0]
[0,0,0,1]