pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:91:
#endif #define MODIFY(X) do{ THIS->modified = 1;THIS->t.X; }while(0) #define FIX_THIS(fname) do { \ if(THIS->modified) \ fix_tm(fname, THIS); \ } while(0) static void fix_tm(const char *fname, struct TM_struct *this) {
-
const char*tm_zone = GET_ZONE(this);
+
const char
*tm_zone = GET_ZONE(this);
int is_utc_zone = tm_zone && !strcmp(tm_zone, "UTC"); if (is_utc_zone) this->t.tm_isdst = 0; this->unix_time = mktime_zone(fname, &this->t, is_utc_zone, 0); this->modified = 0; } #ifdef HAVE_STRPTIME /*! @decl int(0..1) strptime( string(1..255) format, string(1..255) data ) *!