How to align local coordinate with global axis?
Press CtrlA to bring up the Apply object Transformation menu and select Rotation.



From the blender manual:


  This will make Blender consider the current rotation to be equivalent to 0 degrees in each plane i.e. the selection will not rotated, the current rotation will be considered to be the “default rotation”