Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » GetTimeZoneText() warning
GetTimeZoneText() warning [message #36717] Thu, 28 June 2012 18:06 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello all

In TimeDate.cpp function GetTimeZoneText() there is a new warning easy to solve:

String GetTimeZoneText()
{
	Time gmtime = GetUtcTime();
	Time ltime = GetSysTime();
	int d = (ltime - gmtime) / 600;		// Warning Time (int64) converted to an int
	return Format("+%02.2d%01.1d0", d / 6, d % 6);
}


Best regards
IƱaki
Re: GetTimeZoneText() warning [message #36728 is a reply to message #36717] Fri, 29 June 2012 13:49 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
should be fixed, thanks
Previous Topic: How to add 6 months to a date?
Next Topic: why use fromsyschrset in the first sentence of the logfile?
Goto Forum:
  


Current Time: Fri Mar 29 02:14:24 CET 2024

Total time taken to generate the page: 0.01838 seconds