Date/Time Problem

Discussion about the open-source Phalanger [?] project.

Date/Time Problem

Postby draxtor@codeplex » December 21st, 2008, 9:02 pm

Hi  I installed Phalanger 2.0 march 2008 version and created one test web site in Visual Studio 2008. I tried hello world, dynamic variables and it works ok. Problem starts when I tried date function:
echo date ("l dS of F Y h:i:s A");echo "July 1, 2000 is on a " . date ("l", mktime(0,0,0,7,1,2000));

from php_manual, and

$time = time();

$ltime = getdate($time);

$stime = Date(

"H:i:s", $time);
from Phalanger samples (clock.php)
and got:
Object reference not set to an instance of an object. error

Line 10: $time = time();Line 11: //$ltime = getdate($time);Line 12: $stime = Date("H:i:s", $time);Line 13: ?>Line 14:    

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]   PHP.Library.PhpTimeZone.get_CurrentTimeZone() +66   PHP.Library.PhpDateTime.FormatDate(String format, Int32 timestamp) +38   <Script>.<Main>(ScriptContext <context>, Dictionary`2 <locals>, DObject , DTypeDesc , Boolean ) in C:\.net\web\phpSite\default.php:12[TargetInvocationException: Exception has been thrown by the target of an invocation.]   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0   System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +71   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +261   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29   PHP.Core.PhpFunctionUtils.Invoke(MethodInfo method, Object target, Object[] args) +166   PHP.Core.PhpScript.InvokeMainHelper(Type script, ScriptContext context, Dictionary`2 variables, DObject self, DTypeDesc includer, Boolean isMain) +140   PHP.Core.ScriptContext.<IncludeScript>b__0(Object scriptType) +51   PHP.Core.ScriptContext.GuardedCall(Action routine, Object data, Boolean allowUserExceptions) +225[PhpNetInternalException: Guarded call]   PHP.Core.ScriptContext.GuardedCall(Action routine, Object data, Boolean allowUserExceptions) +372   PHP.Core.ScriptContext.IncludeScript(String relativeSourcePath, Type type) +197   PHP.Core.RequestContext.IncludeScript(String relativeSourcePath, Type type) +24   PHP.Core.RequestHandler.ProcessRequest(HttpContext context) +231   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
What's wrong. as I understood this things should work?
draxtor@codeplex
 
Posts: 6
Joined: January 7th, 2012, 8:52 pm

Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 14 guests

cron

User Control Panel

Login

Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 guests (based on users active over the past 5 minutes)
Most users ever online was 297 on March 29th, 2024, 7:06 am

Users browsing this forum: No registered users and 14 guests