The timing of flowering in stress environments is critical for plants to secure reproductive success. We reveal that SOS3, a regulatory component of the Salt Overly Sensitive (SOS) pathway for salt adaptation, makes a complex with the photoperiodic flowering components GIGANTEA (GI) and FKF1 (FLAVIN BINDING, KELCH REPEAT, F-BOX1) to ensure the expression of the flowering activator CONSTANS (CO) under salt stress. Palmitoylation-dependent nuclear import of SOS3 selectively stabilizes GI in the nucleus to proceed with flowering while degradation of GI in the cytosol releases the protein kinase SOS2 to achieve salt tolerance. Thus, SOS3 is a Ca2+ and palmitoylation dependent molecular switch required to ensure flowering in a saline environment. The spatial segregation and controlled stability of GI and SOS3 proteins explain the environmentally regulated outputs of their signaling networks in stress adaptation and time of flowering.