grim/purple-plugin-pack

d9e5e550d132
Backport part of Pidgin revision 35800b680594b4a9a13085c006dbde401d9ab541
(including the fix in 1acb1cc0f7e5947393c4af3ef1a2cc7266aa1317):
"I also made it so any custom AUTO*_FLAGS specified will override the default
arguments instead of just appending to them." --nosnilmot
/*************************************************************************
* Timezone test module
* by Martijn van Oosterhout <kleptog@svana.org> (C) April 2006
* Licenced under the GNU General Public Licence version 2.
*
* Code to test the timezone module.
*************************************************************************/
//#include "private.h"
//#include "tzfile.h"
#include "localtime.h"
int
main()
{
struct state *state;
time_t now = time(NULL);
struct tm tm;
state = timezone_load("Australia/Sydney");
if(!state)
return 0;
localsub(&now, 0, &tm, state);
gmtsub(&now, 0, &tm);
return 0;
}